

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>mindspore.ops &mdash; MindSpore master documentation</title>
  

  
  <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

  
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
        <script src="../_static/language_data.js"></script>
        <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="mindspore.ops.Acosh" href="ops/mindspore.ops.Acosh.html" />
    <link rel="prev" title="mindspore.numpy.var" href="numpy/mindspore.numpy.var.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../index.html" class="icon icon-home"> MindSpore
          

          
          </a>

          
            
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">MindSpore Python API</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="mindspore.html">mindspore</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.common.initializer.html">mindspore.common.initializer</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.communication.html">mindspore.communication</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.compression.html">mindspore.compression</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.context.html">mindspore.context</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.html">mindspore.dataset</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.audio.html">mindspore.dataset.audio</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.config.html">mindspore.dataset.config</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.text.html">mindspore.dataset.text</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.transforms.html">mindspore.dataset.transforms</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.vision.html">mindspore.dataset.vision</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.mindrecord.html">mindspore.mindrecord</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.html">mindspore.nn</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.probability.html">mindspore.nn.probability</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.transformer.html">mindspore.nn.transformer</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.numpy.html">mindspore.numpy</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">mindspore.ops</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#operations">operations</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id1">神经网络算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Acosh.html">mindspore.ops.Acosh</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Adam.html">mindspore.ops.Adam</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AdamNoUpdateParam.html">mindspore.ops.AdamNoUpdateParam</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AdamWeightDecay.html">mindspore.ops.AdamWeightDecay</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AdaptiveAvgPool2D.html">mindspore.ops.AdaptiveAvgPool2D</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyAdadelta.html">mindspore.ops.ApplyAdadelta</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyAdagrad.html">mindspore.ops.ApplyAdagrad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyAdagradDA.html">mindspore.ops.ApplyAdagradDA</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyAdagradV2.html">mindspore.ops.ApplyAdagradV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyAdaMax.html">mindspore.ops.ApplyAdaMax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyAddSign.html">mindspore.ops.ApplyAddSign</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyCenteredRMSProp.html">mindspore.ops.ApplyCenteredRMSProp</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyGradientDescent.html">mindspore.ops.ApplyGradientDescent</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyMomentum.html">mindspore.ops.ApplyMomentum</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyPowerSign.html">mindspore.ops.ApplyPowerSign</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyProximalAdagrad.html">mindspore.ops.ApplyProximalAdagrad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyProximalGradientDescent.html">mindspore.ops.ApplyProximalGradientDescent</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyRMSProp.html">mindspore.ops.ApplyRMSProp</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AvgPool.html">mindspore.ops.AvgPool</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AvgPool3D.html">mindspore.ops.AvgPool3D</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BasicLSTMCell.html">mindspore.ops.BasicLSTMCell</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BatchNorm.html">mindspore.ops.BatchNorm</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BCEWithLogitsLoss.html">mindspore.ops.BCEWithLogitsLoss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BiasAdd.html">mindspore.ops.BiasAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BinaryCrossEntropy.html">mindspore.ops.BinaryCrossEntropy</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ComputeAccidentalHits.html">mindspore.ops.ComputeAccidentalHits</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Conv2D.html">mindspore.ops.Conv2D</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Conv2DBackpropInput.html">mindspore.ops.Conv2DBackpropInput</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Conv2DTranspose.html">mindspore.ops.Conv2DTranspose</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Conv3D.html">mindspore.ops.Conv3D</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Conv3DTranspose.html">mindspore.ops.Conv3DTranspose</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.CTCGreedyDecoder.html">mindspore.ops.CTCGreedyDecoder</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.CTCLoss.html">mindspore.ops.CTCLoss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DataFormatDimMap.html">mindspore.ops.DataFormatDimMap</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DepthwiseConv2dNative.html">mindspore.ops.DepthwiseConv2dNative</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Dropout.html">mindspore.ops.Dropout</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Dropout2D.html">mindspore.ops.Dropout2D</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Dropout3D.html">mindspore.ops.Dropout3D</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DropoutDoMask.html">mindspore.ops.DropoutDoMask</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DropoutGenMask.html">mindspore.ops.DropoutGenMask</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DynamicGRUV2.html">mindspore.ops.DynamicGRUV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DynamicRNN.html">mindspore.ops.DynamicRNN</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Elu.html">mindspore.ops.Elu</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FastGeLU.html">mindspore.ops.FastGeLU</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Flatten.html">mindspore.ops.Flatten</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FloorMod.html">mindspore.ops.FloorMod</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FusedSparseAdam.html">mindspore.ops.FusedSparseAdam</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FusedSparseLazyAdam.html">mindspore.ops.FusedSparseLazyAdam</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FusedSparseProximalAdagrad.html">mindspore.ops.FusedSparseProximalAdagrad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.GeLU.html">mindspore.ops.GeLU</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.GetNext.html">mindspore.ops.GetNext</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.HShrink.html">mindspore.ops.HShrink</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.HSigmoid.html">mindspore.ops.HSigmoid</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.HSwish.html">mindspore.ops.HSwish</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.KLDivLoss.html">mindspore.ops.KLDivLoss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.L2Loss.html">mindspore.ops.L2Loss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.L2Normalize.html">mindspore.ops.L2Normalize</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LARSUpdate.html">mindspore.ops.LARSUpdate</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LayerNorm.html">mindspore.ops.LayerNorm</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LogSoftmax.html">mindspore.ops.LogSoftmax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LRN.html">mindspore.ops.LRN</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LSTM.html">mindspore.ops.LSTM</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MaxPool.html">mindspore.ops.MaxPool</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MaxPool3D.html">mindspore.ops.MaxPool3D</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MaxPoolWithArgmax.html">mindspore.ops.MaxPoolWithArgmax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MirrorPad.html">mindspore.ops.MirrorPad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Mish.html">mindspore.ops.Mish</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NLLLoss.html">mindspore.ops.NLLLoss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.OneHot.html">mindspore.ops.OneHot</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Pad.html">mindspore.ops.Pad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.PReLU.html">mindspore.ops.PReLU</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReLU.html">mindspore.ops.ReLU</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReLU6.html">mindspore.ops.ReLU6</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReLUV2.html">mindspore.ops.ReLUV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ResizeBilinear.html">mindspore.ops.ResizeBilinear</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.RNNTLoss.html">mindspore.ops.RNNTLoss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ROIAlign.html">mindspore.ops.ROIAlign</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SeLU.html">mindspore.ops.SeLU</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SGD.html">mindspore.ops.SGD</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Sigmoid.html">mindspore.ops.Sigmoid</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SigmoidCrossEntropyWithLogits.html">mindspore.ops.SigmoidCrossEntropyWithLogits</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SmoothL1Loss.html">mindspore.ops.SmoothL1Loss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SoftMarginLoss.html">mindspore.ops.SoftMarginLoss</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Softmax.html">mindspore.ops.Softmax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SoftmaxCrossEntropyWithLogits.html">mindspore.ops.SoftmaxCrossEntropyWithLogits</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Softplus.html">mindspore.ops.Softplus</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SoftShrink.html">mindspore.ops.SoftShrink</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Softsign.html">mindspore.ops.Softsign</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseApplyAdagrad.html">mindspore.ops.SparseApplyAdagrad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseApplyAdagradV2.html">mindspore.ops.SparseApplyAdagradV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseApplyProximalAdagrad.html">mindspore.ops.SparseApplyProximalAdagrad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseSoftmaxCrossEntropyWithLogits.html">mindspore.ops.SparseSoftmaxCrossEntropyWithLogits</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Stack.html">mindspore.ops.Stack</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Tanh.html">mindspore.ops.Tanh</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TopK.html">mindspore.ops.TopK</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Unstack.html">mindspore.ops.Unstack</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id2">数学算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Abs.html">mindspore.ops.Abs</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AccumulateNV2.html">mindspore.ops.AccumulateNV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ACos.html">mindspore.ops.ACos</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Add.html">mindspore.ops.Add</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AddN.html">mindspore.ops.AddN</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApproximateEqual.html">mindspore.ops.ApproximateEqual</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Asin.html">mindspore.ops.Asin</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Asinh.html">mindspore.ops.Asinh</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AssignAdd.html">mindspore.ops.AssignAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AssignSub.html">mindspore.ops.AssignSub</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Atan.html">mindspore.ops.Atan</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Atan2.html">mindspore.ops.Atan2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Atanh.html">mindspore.ops.Atanh</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BatchMatMul.html">mindspore.ops.BatchMatMul</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BesselI0e.html">mindspore.ops.BesselI0e</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BesselI1e.html">mindspore.ops.BesselI1e</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BitwiseAnd.html">mindspore.ops.BitwiseAnd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BitwiseOr.html">mindspore.ops.BitwiseOr</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BitwiseXor.html">mindspore.ops.BitwiseXor</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Cdist.html">mindspore.ops.Cdist</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Ceil.html">mindspore.ops.Ceil</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Conj.html">mindspore.ops.Conj</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Cos.html">mindspore.ops.Cos</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Cosh.html">mindspore.ops.Cosh</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.CumProd.html">mindspore.ops.CumProd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.CumSum.html">mindspore.ops.CumSum</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Div.html">mindspore.ops.Div</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DivNoNan.html">mindspore.ops.DivNoNan</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Eps.html">mindspore.ops.Eps</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Equal.html">mindspore.ops.Equal</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.EqualCount.html">mindspore.ops.EqualCount</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Erf.html">mindspore.ops.Erf</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Erfc.html">mindspore.ops.Erfc</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Erfinv.html">mindspore.ops.Erfinv</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Exp.html">mindspore.ops.Exp</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Expm1.html">mindspore.ops.Expm1</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FloatStatus.html">mindspore.ops.FloatStatus</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Floor.html">mindspore.ops.Floor</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FloorDiv.html">mindspore.ops.FloorDiv</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Ger.html">mindspore.ops.Ger</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Greater.html">mindspore.ops.Greater</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.GreaterEqual.html">mindspore.ops.GreaterEqual</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.HistogramFixedWidth.html">mindspore.ops.HistogramFixedWidth</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Imag.html">mindspore.ops.Imag</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.IndexAdd.html">mindspore.ops.IndexAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.InplaceAdd.html">mindspore.ops.InplaceAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.InplaceSub.html">mindspore.ops.InplaceSub</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Inv.html">mindspore.ops.Inv</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Invert.html">mindspore.ops.Invert</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.IsInf.html">mindspore.ops.IsInf</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.IsNan.html">mindspore.ops.IsNan</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Lerp.html">mindspore.ops.Lerp</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Less.html">mindspore.ops.Less</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LessEqual.html">mindspore.ops.LessEqual</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LinSpace.html">mindspore.ops.LinSpace</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Log.html">mindspore.ops.Log</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Log1p.html">mindspore.ops.Log1p</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LogicalAnd.html">mindspore.ops.LogicalAnd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LogicalNot.html">mindspore.ops.LogicalNot</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LogicalOr.html">mindspore.ops.LogicalOr</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LpNorm.html">mindspore.ops.LpNorm</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MatMul.html">mindspore.ops.matmul</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MatrixInverse.html">mindspore.ops.MatrixInverse</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Maximum.html">mindspore.ops.Maximum</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Minimum.html">mindspore.ops.Minimum</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Mod.html">mindspore.ops.Mod</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Mul.html">mindspore.ops.Mul</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MulNoNan.html">mindspore.ops.MulNoNan</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Neg.html">mindspore.ops.Neg</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NMSWithMask.html">mindspore.ops.NMSWithMask</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NotEqual.html">mindspore.ops.NotEqual</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NPUAllocFloatStatus.html">mindspore.ops.NPUAllocFloatStatus</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NPUClearFloatStatus.html">mindspore.ops.NPUClearFloatStatus</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NPUGetFloatStatus.html">mindspore.ops.NPUGetFloatStatus</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Pow.html">mindspore.ops.Pow</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Real.html">mindspore.ops.Real</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.RealDiv.html">mindspore.ops.RealDiv</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Reciprocal.html">mindspore.ops.Reciprocal</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceAll.html">mindspore.ops.ReduceAll</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceAny.html">mindspore.ops.ReduceAny</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceMax.html">mindspore.ops.ReduceMax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceMean.html">mindspore.ops.ReduceMean</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceMin.html">mindspore.ops.ReduceMin</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceProd.html">mindspore.ops.ReduceProd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceSum.html">mindspore.ops.ReduceSum</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Round.html">mindspore.ops.Round</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Rsqrt.html">mindspore.ops.Rsqrt</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Sign.html">mindspore.ops.Sign</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Sin.html">mindspore.ops.Sin</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Sinh.html">mindspore.ops.Sinh</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Sqrt.html">mindspore.ops.Sqrt</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Square.html">mindspore.ops.Square</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SquaredDifference.html">mindspore.ops.SquaredDifference</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SquareSumAll.html">mindspore.ops.SquareSumAll</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Sub.html">mindspore.ops.Sub</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Tan.html">mindspore.ops.Tan</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TruncateDiv.html">mindspore.ops.TruncateDiv</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TruncateMod.html">mindspore.ops.TruncateMod</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Xdivy.html">mindspore.ops.Xdivy</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Xlogy.html">mindspore.ops.Xlogy</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id3">数组算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ApplyFtrl.html">mindspore.ops.ApplyFtrl</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Argmax.html">mindspore.ops.Argmax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ArgMaxWithValue.html">mindspore.ops.ArgMaxWithValue</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Argmin.html">mindspore.ops.Argmin</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ArgMinWithValue.html">mindspore.ops.ArgMinWithValue</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BatchToSpace.html">mindspore.ops.BatchToSpace</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BatchToSpaceND.html">mindspore.ops.BatchToSpaceND</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BroadcastTo.html">mindspore.ops.BroadcastTo</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Cast.html">mindspore.ops.Cast</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Concat.html">mindspore.ops.Concat</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DepthToSpace.html">mindspore.ops.DepthToSpace</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DType.html">mindspore.ops.DType</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.DynamicShape.html">mindspore.ops.DynamicShape</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.EditDistance.html">mindspore.ops.EditDistance</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.EmbeddingLookup.html">mindspore.ops.EmbeddingLookup</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ExpandDims.html">mindspore.ops.ExpandDims</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ExtractVolumePatches.html">mindspore.ops.ExtractVolumePatches</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Eye.html">mindspore.ops.Eye</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Fill.html">mindspore.ops.Fill</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.FusedSparseFtrl.html">mindspore.ops.FusedSparseFtrl</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Gather.html">mindspore.ops.Gather</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.GatherD.html">mindspore.ops.GatherD</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.GatherNd.html">mindspore.ops.GatherNd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Identity.html">mindspore.ops.Identity</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.InplaceUpdate.html">mindspore.ops.InplaceUpdate</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.InvertPermutation.html">mindspore.ops.InvertPermutation</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.IsFinite.html">mindspore.ops.IsFinite</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.IsInstance.html">mindspore.ops.IsInstance</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.IsSubClass.html">mindspore.ops.IsSubClass</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MaskedFill.html">mindspore.ops.MaskedFill</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.MaskedSelect.html">mindspore.ops.MaskedSelect</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Meshgrid.html">mindspore.ops.Meshgrid</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Ones.html">mindspore.ops.Ones</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.OnesLike.html">mindspore.ops.OnesLike</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Padding.html">mindspore.ops.Padding</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ParallelConcat.html">mindspore.ops.ParallelConcat</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Randperm.html">mindspore.ops.Randperm</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Rank.html">mindspore.ops.Rank</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Reshape.html">mindspore.ops.Reshape</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ResizeNearestNeighbor.html">mindspore.ops.ResizeNearestNeighbor</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReverseSequence.html">mindspore.ops.ReverseSequence</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReverseV2.html">mindspore.ops.ReverseV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Rint.html">mindspore.ops.Rint</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SameTypeShape.html">mindspore.ops.SameTypeShape</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScalarCast.html">mindspore.ops.ScalarCast</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScalarToArray.html">mindspore.ops.ScalarToArray</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScalarToTensor.html">mindspore.ops.ScalarToTensor</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterAdd.html">mindspore.ops.ScatterAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterDiv.html">mindspore.ops.ScatterDiv</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterMax.html">mindspore.ops.ScatterMax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterMin.html">mindspore.ops.ScatterMin</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterMul.html">mindspore.ops.ScatterMul</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterNd.html">mindspore.ops.ScatterNd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterNdAdd.html">mindspore.ops.ScatterNdAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterNdSub.html">mindspore.ops.ScatterNdSub</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterNdUpdate.html">mindspore.ops.ScatterNdUpdate</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterNonAliasingAdd.html">mindspore.ops.ScatterNonAliasingAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterSub.html">mindspore.ops.ScatterSub</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScatterUpdate.html">mindspore.ops.ScatterUpdate</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Select.html">mindspore.ops.Select</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Shape.html">mindspore.ops.Shape</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Size.html">mindspore.ops.Size</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Slice.html">mindspore.ops.Slice</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Sort.html">mindspore.ops.Sort</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SpaceToBatch.html">mindspore.ops.SpaceToBatch</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SpaceToBatchND.html">mindspore.ops.SpaceToBatchND</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SpaceToDepth.html">mindspore.ops.SpaceToDepth</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseApplyFtrl.html">mindspore.ops.SparseApplyFtrl</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseApplyFtrlV2.html">mindspore.ops.SparseApplyFtrlV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseGatherV2.html">mindspore.ops.SparseGatherV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Split.html">mindspore.ops.Split</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SplitV.html">mindspore.ops.SplitV</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Squeeze.html">mindspore.ops.Squeeze</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.StridedSlice.html">mindspore.ops.StridedSlice</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TensorScatterAdd.html">mindspore.ops.TensorScatterAdd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TensorScatterMax.html">mindspore.ops.TensorScatterMax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TensorScatterMin.html">mindspore.ops.TensorScatterMin</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TensorScatterSub.html">mindspore.ops.TensorScatterSub</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TensorScatterUpdate.html">mindspore.ops.TensorScatterUpdate</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TensorShape.html">mindspore.ops.TensorShape</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Tile.html">mindspore.ops.Tile</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Transpose.html">mindspore.ops.Transpose</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TupleToArray.html">mindspore.ops.TupleToArray</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Unique.html">mindspore.ops.Unique</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UniqueWithPad.html">mindspore.ops.UniqueWithPad</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentMax.html">mindspore.ops.UnsortedSegmentMax</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentMin.html">mindspore.ops.UnsortedSegmentMin</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentProd.html">mindspore.ops.UnsortedSegmentProd</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentSum.html">mindspore.ops.UnsortedSegmentSum</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Zeros.html">mindspore.ops.Zeros</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ZerosLike.html">mindspore.ops.ZerosLike</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id4">通信算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AllGather.html">mindspore.ops.AllGather</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AllReduce.html">mindspore.ops.AllReduce</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.AlltoAll.html">mindspore.ops.AlltoAll</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Broadcast.html">mindspore.ops.Broadcast</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NeighborExchange.html">mindspore.ops.NeighborExchange</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NeighborExchangeV2.html">mindspore.ops.NeighborExchangeV2</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceOp.html">mindspore.ops.ReduceOp</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ReduceScatter.html">mindspore.ops.ReduceScatter</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id5">调试算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.HistogramSummary.html">mindspore.ops.HistogramSummary</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.HookBackward.html">mindspore.ops.HookBackward</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ImageSummary.html">mindspore.ops.ImageSummary</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.InsertGradientOf.html">mindspore.ops.InsertGradientOf</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Print.html">mindspore.ops.Print</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.ScalarSummary.html">mindspore.ops.ScalarSummary</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.TensorSummary.html">mindspore.ops.TensorSummary</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id6">随机算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Gamma.html">mindspore.ops.Gamma</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.LogUniformCandidateSampler.html">mindspore.ops.LogUniformCandidateSampler</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Multinomial.html">mindspore.ops.Multinomial</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Poisson.html">mindspore.ops.Poisson</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.RandomCategorical.html">mindspore.ops.RandomCategorical</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.RandomChoiceWithMask.html">mindspore.ops.RandomChoiceWithMask</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.StandardLaplace.html">mindspore.ops.StandardLaplace</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.StandardNormal.html">mindspore.ops.StandardNormal</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UniformCandidateSampler.html">mindspore.ops.UniformCandidateSampler</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UniformInt.html">mindspore.ops.UniformInt</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.UniformReal.html">mindspore.ops.UniformReal</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id7">图像算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.CropAndResize.html">mindspore.ops.CropAndResize</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id8">稀疏算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseToDense.html">mindspore.ops.SparseToDense</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.SparseTensorDenseMatmul.html">mindspore.ops.SparseTensorDenseMatmul</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id9">自定义算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Custom.html">mindspore.ops.Custom</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#id10">其他算子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Assign.html">mindspore.ops.Assign</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BoundingBoxDecode.html">mindspore.ops.BoundingBoxDecode</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.BoundingBoxEncode.html">mindspore.ops.BoundingBoxEncode</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.CheckBprop.html">mindspore.ops.CheckBprop</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.CheckValid.html">mindspore.ops.CheckValid</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Depend.html">mindspore.ops.Depend</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.InTopK.html">mindspore.ops.InTopK</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.IOU.html">mindspore.ops.IOU</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.NoRepeatNGram.html">mindspore.ops.NoRepeatNGram</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.Partial.html">mindspore.ops.Partial</a></li>
<li class="toctree-l4"><a class="reference internal" href="ops/mindspore.ops.PopulationCount.html">mindspore.ops.PopulationCount</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#functional">functional</a><ul>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.batch_dot.html">mindspore.ops.batch_dot</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.clip_by_global_norm.html">mindspore.ops.clip_by_global_norm</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.clip_by_value.html">mindspore.ops.clip_by_value</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.core.html">mindspore.ops.core</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.count_nonzero.html">mindspore.ops.count_nonzero</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.cummin.html">mindspore.ops.cummin</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.dot.html">mindspore.ops.dot</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.gamma.html">mindspore.ops.gamma</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.grad.html">mindspore.ops.grad</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.GradOperation.html">mindspore.ops.GradOperation</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.HyperMap.html">mindspore.ops.HyperMap</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.jvp.html">mindspore.ops.jvp</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.laplace.html">mindspore.ops.laplace</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.Map.html">mindspore.ops.Map</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.matmul.html">mindspore.ops.matmul</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.multinomial.html">mindspore.ops.multinomial</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.MultitypeFuncGraph.html">mindspore.ops.MultitypeFuncGraph</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.narrow.html">mindspore.ops.narrow</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.normal.html">mindspore.ops.normal</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.poisson.html">mindspore.ops.poisson</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.repeat_elements.html">mindspore.ops.repeat_elements</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.select.html">mindspore.ops.select</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.sequence_mask.html">mindspore.ops.sequence_mask</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.tensor_dot.html">mindspore.ops.tensor_dot</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.uniform.html">mindspore.ops.uniform</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.vjp.html">mindspore.ops.vjp</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id11">原语</a><ul>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.constexpr.html">mindspore.ops.constexpr</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.prim_attr_register.html">mindspore.ops.prim_attr_register</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.Primitive.html">mindspore.ops.Primitive</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.PrimitiveWithCheck.html">mindspore.ops.PrimitiveWithCheck</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.PrimitiveWithInfer.html">mindspore.ops.PrimitiveWithInfer</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id12">函数实现注册</a><ul>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.get_vm_impl_fn.html">mindspore.ops.get_vm_impl_fn</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id13">算子信息注册</a><ul>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.AiCPURegOp.html">mindspore.ops.AiCPURegOp</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.custom_info_register.html">mindspore.ops.custom_info_register</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.CustomRegOp.html">mindspore.ops.CustomRegOp</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.DataType.html">mindspore.ops.DataType</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.op_info_register.html">mindspore.ops.op_info_register</a></li>
<li class="toctree-l3"><a class="reference internal" href="ops/mindspore.ops.TBERegOp.html">mindspore.ops.TBERegOp</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.parallel.html">mindspore.parallel</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.parallel.nn.html">mindspore.parallel.nn</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.profiler.html">mindspore.profiler</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.scipy.html">mindspore.scipy</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.train.html">mindspore.train</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.boost.html">mindspore.boost</a></li>
</ul>
<p class="caption"><span class="caption-text">MindSpore C++ API</span></p>
<ul>
<li class="toctree-l1"><a class="reference external" href="https://www.mindspore.cn/lite/api/zh-CN/master/api_cpp/mindspore.html">MindSpore Lite↗</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">MindSpore</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
        
      <li>mindspore.ops</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../_sources/api_python/mindspore.ops.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="mindspore-ops">
<h1>mindspore.ops<a class="headerlink" href="#mindspore-ops" title="Permalink to this headline">¶</a></h1>
<p>可用于Cell的构造函数的算子。</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">mindspore.ops</span> <span class="k">as</span> <span class="nn">ops</span>
</pre></div>
</div>
<p>MindSpore中 <cite>mindspore.ops</cite> 接口与上一版本相比，新增、删除和支持平台的变化信息请参考 <a class="reference external" href="https://gitee.com/mindspore/docs/blob/master/resource/api_updates/ops_api_updates.md">API Updates</a> 。</p>
<div class="section" id="operations">
<h2>operations<a class="headerlink" href="#operations" title="Permalink to this headline">¶</a></h2>
<div class="section" id="id1">
<h3>神经网络算子<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
<p>operations中的Primitive算子在使用前需要实例化。</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Acosh.html#mindspore.ops.Acosh" title="mindspore.ops.Acosh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Acosh</span></code></a></p></td>
<td><p>Computes inverse hyperbolic cosine of the inputs element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Adam.html#mindspore.ops.Adam" title="mindspore.ops.Adam"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Adam</span></code></a></p></td>
<td><p>Updates gradients by the Adaptive Moment Estimation (Adam) algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AdamNoUpdateParam.html#mindspore.ops.AdamNoUpdateParam" title="mindspore.ops.AdamNoUpdateParam"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AdamNoUpdateParam</span></code></a></p></td>
<td><p>Updates gradients by the Adaptive Moment Estimation (Adam) algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.AdamWeightDecay.html#mindspore.ops.AdamWeightDecay" title="mindspore.ops.AdamWeightDecay"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AdamWeightDecay</span></code></a></p></td>
<td><p>Updates gradients by the Adaptive Moment Estimation algorithm with weight decay (AdamWeightDecay).</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AdaptiveAvgPool2D.html#mindspore.ops.AdaptiveAvgPool2D" title="mindspore.ops.AdaptiveAvgPool2D"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AdaptiveAvgPool2D</span></code></a></p></td>
<td><p>AdaptiveAvgPool2D operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyAdadelta.html#mindspore.ops.ApplyAdadelta" title="mindspore.ops.ApplyAdadelta"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyAdadelta</span></code></a></p></td>
<td><p>Updates relevant entries according to the adadelta scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyAdagrad.html#mindspore.ops.ApplyAdagrad" title="mindspore.ops.ApplyAdagrad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyAdagrad</span></code></a></p></td>
<td><p>Updates relevant entries according to the adagrad scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyAdagradDA.html#mindspore.ops.ApplyAdagradDA" title="mindspore.ops.ApplyAdagradDA"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyAdagradDA</span></code></a></p></td>
<td><p>Update <cite>var</cite> according to the proximal adagrad scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyAdagradV2.html#mindspore.ops.ApplyAdagradV2" title="mindspore.ops.ApplyAdagradV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyAdagradV2</span></code></a></p></td>
<td><p>Updates relevant entries according to the adagradv2 scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyAdaMax.html#mindspore.ops.ApplyAdaMax" title="mindspore.ops.ApplyAdaMax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyAdaMax</span></code></a></p></td>
<td><p>Updates relevant entries according to the adamax scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyAddSign.html#mindspore.ops.ApplyAddSign" title="mindspore.ops.ApplyAddSign"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyAddSign</span></code></a></p></td>
<td><p>Updates relevant entries according to the AddSign algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyCenteredRMSProp.html#mindspore.ops.ApplyCenteredRMSProp" title="mindspore.ops.ApplyCenteredRMSProp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyCenteredRMSProp</span></code></a></p></td>
<td><p>Optimizer that implements the centered RMSProp algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyGradientDescent.html#mindspore.ops.ApplyGradientDescent" title="mindspore.ops.ApplyGradientDescent"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyGradientDescent</span></code></a></p></td>
<td><p>Updates <cite>var</cite> by subtracting <cite>alpha</cite> * <cite>delta</cite> from it.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code>  <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyMomentum.html#mindspore.ops.ApplyMomentum" title="mindspore.ops.ApplyMomentum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyMomentum</span></code></a></p></td>
<td><p>Optimizer that implements the Momentum algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyPowerSign.html#mindspore.ops.ApplyPowerSign" title="mindspore.ops.ApplyPowerSign"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyPowerSign</span></code></a></p></td>
<td><p>Updates relevant entries according to the AddSign algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyProximalAdagrad.html#mindspore.ops.ApplyProximalAdagrad" title="mindspore.ops.ApplyProximalAdagrad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyProximalAdagrad</span></code></a></p></td>
<td><p>Updates relevant entries according to the proximal adagrad algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyProximalGradientDescent.html#mindspore.ops.ApplyProximalGradientDescent" title="mindspore.ops.ApplyProximalGradientDescent"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyProximalGradientDescent</span></code></a></p></td>
<td><p>Updates relevant entries according to the FOBOS(Forward Backward Splitting) algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyRMSProp.html#mindspore.ops.ApplyRMSProp" title="mindspore.ops.ApplyRMSProp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyRMSProp</span></code></a></p></td>
<td><p>Optimizer that implements the Root Mean Square prop(RMSProp) algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AvgPool.html#mindspore.ops.AvgPool" title="mindspore.ops.AvgPool"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AvgPool</span></code></a></p></td>
<td><p>Average pooling operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.AvgPool3D.html#mindspore.ops.AvgPool3D" title="mindspore.ops.AvgPool3D"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AvgPool3D</span></code></a></p></td>
<td><p>对输入的多维数据进行三维的平均池化运算。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BasicLSTMCell.html#mindspore.ops.BasicLSTMCell" title="mindspore.ops.BasicLSTMCell"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BasicLSTMCell</span></code></a></p></td>
<td><p>It’s similar to operator <code class="xref py py-class docutils literal notranslate"><span class="pre">DynamicRNN</span></code>.</p></td>
<td><p>Deprecated</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BatchNorm.html#mindspore.ops.BatchNorm" title="mindspore.ops.BatchNorm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BatchNorm</span></code></a></p></td>
<td><p>Batch Normalization for input data and updated parameters.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BCEWithLogitsLoss.html#mindspore.ops.BCEWithLogitsLoss" title="mindspore.ops.BCEWithLogitsLoss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BCEWithLogitsLoss</span></code></a></p></td>
<td><p>Adds sigmoid activation function to input <cite>logits</cite>, and uses the given logits to compute binary cross entropy between the logits and the label.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BiasAdd.html#mindspore.ops.BiasAdd" title="mindspore.ops.BiasAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BiasAdd</span></code></a></p></td>
<td><p>返回输入Tensor与偏置Tensor之和。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BinaryCrossEntropy.html#mindspore.ops.BinaryCrossEntropy" title="mindspore.ops.BinaryCrossEntropy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BinaryCrossEntropy</span></code></a></p></td>
<td><p>Computes the binary cross entropy between the logits and the labels.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ComputeAccidentalHits.html#mindspore.ops.ComputeAccidentalHits" title="mindspore.ops.ComputeAccidentalHits"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ComputeAccidentalHits</span></code></a></p></td>
<td><p>计算与候选抽样目标类匹配的位置id。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Conv2D.html#mindspore.ops.Conv2D" title="mindspore.ops.Conv2D"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Conv2D</span></code></a></p></td>
<td><p>2D convolution layer.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Conv2DBackpropInput.html#mindspore.ops.Conv2DBackpropInput" title="mindspore.ops.Conv2DBackpropInput"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Conv2DBackpropInput</span></code></a></p></td>
<td><p>The Conv2DBackpropInput interface is deprecated, please refer to <code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Conv2dTranspose</span></code> if you want to do unsampling.</p></td>
<td><p>Deprecated</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Conv2DTranspose.html#mindspore.ops.Conv2DTranspose" title="mindspore.ops.Conv2DTranspose"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Conv2DTranspose</span></code></a></p></td>
<td><p>Compute a 2D transposed convolution, which is also known as a deconvolution (although it is not an actual deconvolution).</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Conv3D.html#mindspore.ops.Conv3D" title="mindspore.ops.Conv3D"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Conv3D</span></code></a></p></td>
<td><p>3D convolution layer.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Conv3DTranspose.html#mindspore.ops.Conv3DTranspose" title="mindspore.ops.Conv3DTranspose"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Conv3DTranspose</span></code></a></p></td>
<td><p>Computes a 3D transposed convolution, which is also known as a deconvolution (although it is not an actual deconvolution).</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.CTCGreedyDecoder.html#mindspore.ops.CTCGreedyDecoder" title="mindspore.ops.CTCGreedyDecoder"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CTCGreedyDecoder</span></code></a></p></td>
<td><p>Performs greedy decoding on the logits given in inputs.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.CTCLoss.html#mindspore.ops.CTCLoss" title="mindspore.ops.CTCLoss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CTCLoss</span></code></a></p></td>
<td><p>Calculates the CTC (Connectionist Temporal Classification) loss and the gradient.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.DataFormatDimMap.html#mindspore.ops.DataFormatDimMap" title="mindspore.ops.DataFormatDimMap"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DataFormatDimMap</span></code></a></p></td>
<td><p>Returns the dimension index in the destination data format given in the source data format.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.DepthwiseConv2dNative.html#mindspore.ops.DepthwiseConv2dNative" title="mindspore.ops.DepthwiseConv2dNative"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DepthwiseConv2dNative</span></code></a></p></td>
<td><p>DepthwiseConv2dNative will be deprecated in the future.</p></td>
<td><p>Deprecated</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Dropout.html#mindspore.ops.Dropout" title="mindspore.ops.Dropout"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Dropout</span></code></a></p></td>
<td><p>Dropout是一种正则化手段，该算子根据丢弃概率 <span class="math notranslate nohighlight">\(1 - keep\_prob\)</span> ，在训练过程中随机将一些神经元输出设置为0，通过阻止神经元节点间的相关性来减少过拟合。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Dropout2D.html#mindspore.ops.Dropout2D" title="mindspore.ops.Dropout2D"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Dropout2D</span></code></a></p></td>
<td><p>During training, randomly zeroes some of the channels of the input tensor with probability 1-<cite>keep_prob</cite> from a Bernoulli distribution(For a 4-dimensional tensor with a shape of NCHW, the channel feature map refers to a 2-dimensional feature map with the shape of HW).</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Dropout3D.html#mindspore.ops.Dropout3D" title="mindspore.ops.Dropout3D"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Dropout3D</span></code></a></p></td>
<td><p>随机丢弃层。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.DropoutDoMask.html#mindspore.ops.DropoutDoMask" title="mindspore.ops.DropoutDoMask"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DropoutDoMask</span></code></a></p></td>
<td><p>The DropoutDoMask interface is deprecated, please use the <a class="reference internal" href="ops/mindspore.ops.Dropout.html#mindspore.ops.Dropout" title="mindspore.ops.Dropout"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Dropout</span></code></a> instead.</p></td>
<td><p>Deprecated</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.DropoutGenMask.html#mindspore.ops.DropoutGenMask" title="mindspore.ops.DropoutGenMask"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DropoutGenMask</span></code></a></p></td>
<td><p>The DropoutGenMask interface is deprecated, please use the <a class="reference internal" href="ops/mindspore.ops.Dropout.html#mindspore.ops.Dropout" title="mindspore.ops.Dropout"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Dropout</span></code></a> instead.</p></td>
<td><p>Deprecated</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.DynamicGRUV2.html#mindspore.ops.DynamicGRUV2" title="mindspore.ops.DynamicGRUV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DynamicGRUV2</span></code></a></p></td>
<td><p>Applies a single-layer gated recurrent unit (GRU) to an input sequence.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.DynamicRNN.html#mindspore.ops.DynamicRNN" title="mindspore.ops.DynamicRNN"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DynamicRNN</span></code></a></p></td>
<td><p>Applies a recurrent neural network to the input.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Elu.html#mindspore.ops.Elu" title="mindspore.ops.Elu"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Elu</span></code></a></p></td>
<td><p>指数线性单元激活函数（Exponential Linear Unit activation function）。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.FastGeLU.html#mindspore.ops.FastGeLU" title="mindspore.ops.FastGeLU"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FastGeLU</span></code></a></p></td>
<td><p>Fast Gaussian Error Linear Units activation function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Flatten.html#mindspore.ops.Flatten" title="mindspore.ops.Flatten"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Flatten</span></code></a></p></td>
<td><p>扁平化（Flatten）输入Tensor，不更改0轴上的batch size。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.FloorMod.html#mindspore.ops.FloorMod" title="mindspore.ops.FloorMod"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FloorMod</span></code></a></p></td>
<td><p>Computes the remainder of division element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.FusedSparseAdam.html#mindspore.ops.FusedSparseAdam" title="mindspore.ops.FusedSparseAdam"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FusedSparseAdam</span></code></a></p></td>
<td><p>Merges the duplicate value of the gradient and then updates parameters by the Adaptive Moment Estimation (Adam) algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.FusedSparseLazyAdam.html#mindspore.ops.FusedSparseLazyAdam" title="mindspore.ops.FusedSparseLazyAdam"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FusedSparseLazyAdam</span></code></a></p></td>
<td><p>Merges the duplicate value of the gradient and then updates parameters by the Adaptive Moment Estimation (Adam) algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.FusedSparseProximalAdagrad.html#mindspore.ops.FusedSparseProximalAdagrad" title="mindspore.ops.FusedSparseProximalAdagrad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FusedSparseProximalAdagrad</span></code></a></p></td>
<td><p>Merges the duplicate value of the gradient and then updates relevant entries according to the proximal adagrad algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.GeLU.html#mindspore.ops.GeLU" title="mindspore.ops.GeLU"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.GeLU</span></code></a></p></td>
<td><p>高斯误差线性单元激活函数（Gaussian Error Linear Units activation function）。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.GetNext.html#mindspore.ops.GetNext" title="mindspore.ops.GetNext"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.GetNext</span></code></a></p></td>
<td><p>返回数据集队列中的下一个元素。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.HShrink.html#mindspore.ops.HShrink" title="mindspore.ops.HShrink"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.HShrink</span></code></a></p></td>
<td><p>Applies the hard shrinkage function element-wise, each element complies with the following function:</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.HSigmoid.html#mindspore.ops.HSigmoid" title="mindspore.ops.HSigmoid"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.HSigmoid</span></code></a></p></td>
<td><p>Hard sigmoid activation function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.HSwish.html#mindspore.ops.HSwish" title="mindspore.ops.HSwish"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.HSwish</span></code></a></p></td>
<td><p>Hard swish activation function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.KLDivLoss.html#mindspore.ops.KLDivLoss" title="mindspore.ops.KLDivLoss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.KLDivLoss</span></code></a></p></td>
<td><p>Computes the Kullback-Leibler divergence between the logits and the labels.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.L2Loss.html#mindspore.ops.L2Loss" title="mindspore.ops.L2Loss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.L2Loss</span></code></a></p></td>
<td><p>用于计算L2范数，但不对结果进行开方操作。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.L2Normalize.html#mindspore.ops.L2Normalize" title="mindspore.ops.L2Normalize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.L2Normalize</span></code></a></p></td>
<td><p>L2范数归一化算子。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.LARSUpdate.html#mindspore.ops.LARSUpdate" title="mindspore.ops.LARSUpdate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LARSUpdate</span></code></a></p></td>
<td><p>Conducts LARS (layer-wise adaptive rate scaling) update on the sum of squares of gradient.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.LayerNorm.html#mindspore.ops.LayerNorm" title="mindspore.ops.LayerNorm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LayerNorm</span></code></a></p></td>
<td><p>Applies the Layer Normalization to the input tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.LogSoftmax.html#mindspore.ops.LogSoftmax" title="mindspore.ops.LogSoftmax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LogSoftmax</span></code></a></p></td>
<td><p>LogSoftmax激活函数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.LRN.html#mindspore.ops.LRN" title="mindspore.ops.LRN"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LRN</span></code></a></p></td>
<td><p>Local Response Normalization.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.LSTM.html#mindspore.ops.LSTM" title="mindspore.ops.LSTM"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LSTM</span></code></a></p></td>
<td><p>Performs the Long Short-Term Memory (LSTM) on the input.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.MaxPool.html#mindspore.ops.MaxPool" title="mindspore.ops.MaxPool"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MaxPool</span></code></a></p></td>
<td><p>Max pooling operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.MaxPool3D.html#mindspore.ops.MaxPool3D" title="mindspore.ops.MaxPool3D"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MaxPool3D</span></code></a></p></td>
<td><p>对输入的多维数据进行三维的最大池化运算。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.MaxPoolWithArgmax.html#mindspore.ops.MaxPoolWithArgmax" title="mindspore.ops.MaxPoolWithArgmax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MaxPoolWithArgmax</span></code></a></p></td>
<td><p>Performs max pooling on the input Tensor and returns both max values and indices.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.MirrorPad.html#mindspore.ops.MirrorPad" title="mindspore.ops.MirrorPad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MirrorPad</span></code></a></p></td>
<td><p>Pads the input tensor according to the paddings and mode.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Mish.html#mindspore.ops.Mish" title="mindspore.ops.Mish"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Mish</span></code></a></p></td>
<td><p>Computes MISH(A Self Regularized Non-Monotonic Neural Activation Function) of input tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.NLLLoss.html#mindspore.ops.NLLLoss" title="mindspore.ops.NLLLoss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NLLLoss</span></code></a></p></td>
<td><p>获取预测值和目标值之间的负对数似然损失。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.OneHot.html#mindspore.ops.OneHot" title="mindspore.ops.OneHot"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.OneHot</span></code></a></p></td>
<td><p>Computes a one-hot tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Pad.html#mindspore.ops.Pad" title="mindspore.ops.Pad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Pad</span></code></a></p></td>
<td><p>Pads the input tensor according to the paddings.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.PReLU.html#mindspore.ops.PReLU" title="mindspore.ops.PReLU"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.PReLU</span></code></a></p></td>
<td><p>带参数的线性修正单元激活函数（Parametric Rectified Linear Unit activation function）。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ReLU.html#mindspore.ops.ReLU" title="mindspore.ops.ReLU"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReLU</span></code></a></p></td>
<td><p>Computes ReLU (Rectified Linear Unit activation function) of input tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ReLU6.html#mindspore.ops.ReLU6" title="mindspore.ops.ReLU6"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReLU6</span></code></a></p></td>
<td><p>Computes ReLU (Rectified Linear Unit) upper bounded by 6 of input tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ReLUV2.html#mindspore.ops.ReLUV2" title="mindspore.ops.ReLUV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReLUV2</span></code></a></p></td>
<td><p>线性修正单元激活函数（Rectified Linear Unit activation function）。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ResizeBilinear.html#mindspore.ops.ResizeBilinear" title="mindspore.ops.ResizeBilinear"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ResizeBilinear</span></code></a></p></td>
<td><p>Resizes an image to a certain size using the bilinear interpolation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.RNNTLoss.html#mindspore.ops.RNNTLoss" title="mindspore.ops.RNNTLoss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.RNNTLoss</span></code></a></p></td>
<td><p>Computes the RNNTLoss and its gradient with respect to the softmax outputs.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ROIAlign.html#mindspore.ops.ROIAlign" title="mindspore.ops.ROIAlign"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ROIAlign</span></code></a></p></td>
<td><p>Computes the Region of Interest (RoI) Align operator.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SeLU.html#mindspore.ops.SeLU" title="mindspore.ops.SeLU"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SeLU</span></code></a></p></td>
<td><p>激活函数SeLU（Scaled exponential Linear Unit）。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SGD.html#mindspore.ops.SGD" title="mindspore.ops.SGD"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SGD</span></code></a></p></td>
<td><p>Computes the stochastic gradient descent.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Sigmoid.html#mindspore.ops.Sigmoid" title="mindspore.ops.Sigmoid"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Sigmoid</span></code></a></p></td>
<td><p>Sigmoid激活函数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SigmoidCrossEntropyWithLogits.html#mindspore.ops.SigmoidCrossEntropyWithLogits" title="mindspore.ops.SigmoidCrossEntropyWithLogits"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SigmoidCrossEntropyWithLogits</span></code></a></p></td>
<td><p>Uses the given logits to compute sigmoid cross entropy between the logits and the label.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SmoothL1Loss.html#mindspore.ops.SmoothL1Loss" title="mindspore.ops.SmoothL1Loss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SmoothL1Loss</span></code></a></p></td>
<td><p>Computes smooth L1 loss, a robust L1 loss.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SoftMarginLoss.html#mindspore.ops.SoftMarginLoss" title="mindspore.ops.SoftMarginLoss"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SoftMarginLoss</span></code></a></p></td>
<td><p>SoftMarginLoss operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Softmax.html#mindspore.ops.Softmax" title="mindspore.ops.Softmax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Softmax</span></code></a></p></td>
<td><p>Softmax operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SoftmaxCrossEntropyWithLogits.html#mindspore.ops.SoftmaxCrossEntropyWithLogits" title="mindspore.ops.SoftmaxCrossEntropyWithLogits"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SoftmaxCrossEntropyWithLogits</span></code></a></p></td>
<td><p>Gets the softmax cross-entropy value between logits and labels with one-hot encoding.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Softplus.html#mindspore.ops.Softplus" title="mindspore.ops.Softplus"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Softplus</span></code></a></p></td>
<td><p>Softplus activation function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code>  <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SoftShrink.html#mindspore.ops.SoftShrink" title="mindspore.ops.SoftShrink"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SoftShrink</span></code></a></p></td>
<td><p>Applies the SoftShrink function element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Softsign.html#mindspore.ops.Softsign" title="mindspore.ops.Softsign"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Softsign</span></code></a></p></td>
<td><p>Softsign activation function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseApplyAdagrad.html#mindspore.ops.SparseApplyAdagrad" title="mindspore.ops.SparseApplyAdagrad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseApplyAdagrad</span></code></a></p></td>
<td><p>Updates relevant entries according to the adagrad scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseApplyAdagradV2.html#mindspore.ops.SparseApplyAdagradV2" title="mindspore.ops.SparseApplyAdagradV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseApplyAdagradV2</span></code></a></p></td>
<td><p>Updates relevant entries according to the adagrad scheme, one more epsilon attribute than SparseApplyAdagrad.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseApplyProximalAdagrad.html#mindspore.ops.SparseApplyProximalAdagrad" title="mindspore.ops.SparseApplyProximalAdagrad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseApplyProximalAdagrad</span></code></a></p></td>
<td><p>Updates relevant entries according to the proximal adagrad algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseSoftmaxCrossEntropyWithLogits.html#mindspore.ops.SparseSoftmaxCrossEntropyWithLogits" title="mindspore.ops.SparseSoftmaxCrossEntropyWithLogits"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseSoftmaxCrossEntropyWithLogits</span></code></a></p></td>
<td><p>Computes the softmax cross-entropy value between logits and sparse encoding labels.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Stack.html#mindspore.ops.Stack" title="mindspore.ops.Stack"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Stack</span></code></a></p></td>
<td><p>Stacks a list of tensors in specified axis.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Tanh.html#mindspore.ops.Tanh" title="mindspore.ops.Tanh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Tanh</span></code></a></p></td>
<td><p>Tanh activation function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code>  <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.TopK.html#mindspore.ops.TopK" title="mindspore.ops.TopK"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TopK</span></code></a></p></td>
<td><p>Finds values and indices of the <cite>k</cite> largest entries along the last dimension.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Unstack.html#mindspore.ops.Unstack" title="mindspore.ops.Unstack"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Unstack</span></code></a></p></td>
<td><p>Unstacks tensor in specified axis.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id2">
<h3>数学算子<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Abs.html#mindspore.ops.Abs" title="mindspore.ops.Abs"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Abs</span></code></a></p></td>
<td><p>Returns absolute value of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.AccumulateNV2.html#mindspore.ops.AccumulateNV2" title="mindspore.ops.AccumulateNV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AccumulateNV2</span></code></a></p></td>
<td><p>Computes accumulation of all input tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ACos.html#mindspore.ops.ACos" title="mindspore.ops.ACos"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ACos</span></code></a></p></td>
<td><p>Computes arccosine of input tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Add.html#mindspore.ops.Add" title="mindspore.ops.Add"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Add</span></code></a></p></td>
<td><p>两个输入Tensor逐元素相加。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AddN.html#mindspore.ops.AddN" title="mindspore.ops.AddN"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AddN</span></code></a></p></td>
<td><p>逐元素将所有输入的Tensor相加。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ApproximateEqual.html#mindspore.ops.ApproximateEqual" title="mindspore.ops.ApproximateEqual"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApproximateEqual</span></code></a></p></td>
<td><p>Returns True if abs(x-y) is smaller than tolerance element-wise, otherwise False.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Asin.html#mindspore.ops.Asin" title="mindspore.ops.Asin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Asin</span></code></a></p></td>
<td><p>Computes arcsine of input tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Asinh.html#mindspore.ops.Asinh" title="mindspore.ops.Asinh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Asinh</span></code></a></p></td>
<td><p>Computes inverse hyperbolic sine of the input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AssignAdd.html#mindspore.ops.AssignAdd" title="mindspore.ops.AssignAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AssignAdd</span></code></a></p></td>
<td><p>Updates a <cite>Parameter</cite> by adding a value to it.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.AssignSub.html#mindspore.ops.AssignSub" title="mindspore.ops.AssignSub"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AssignSub</span></code></a></p></td>
<td><p>Updates a <cite>Parameter</cite> by subtracting a value from it.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Atan.html#mindspore.ops.Atan" title="mindspore.ops.Atan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Atan</span></code></a></p></td>
<td><p>Computes the trigonometric inverse tangent of the input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Atan2.html#mindspore.ops.Atan2" title="mindspore.ops.Atan2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Atan2</span></code></a></p></td>
<td><p>Returns arctangent of x/y element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Atanh.html#mindspore.ops.Atanh" title="mindspore.ops.Atanh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Atanh</span></code></a></p></td>
<td><p>Computes inverse hyperbolic tangent of the input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BatchMatMul.html#mindspore.ops.BatchMatMul" title="mindspore.ops.BatchMatMul"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BatchMatMul</span></code></a></p></td>
<td><p>Computes matrix multiplication between two tensors by batch.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BesselI0e.html#mindspore.ops.BesselI0e" title="mindspore.ops.BesselI0e"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BesselI0e</span></code></a></p></td>
<td><p>Computes BesselI0e of input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BesselI1e.html#mindspore.ops.BesselI1e" title="mindspore.ops.BesselI1e"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BesselI1e</span></code></a></p></td>
<td><p>Computes BesselI1e of input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BitwiseAnd.html#mindspore.ops.BitwiseAnd" title="mindspore.ops.BitwiseAnd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BitwiseAnd</span></code></a></p></td>
<td><p>Returns bitwise <cite>and</cite> of two tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BitwiseOr.html#mindspore.ops.BitwiseOr" title="mindspore.ops.BitwiseOr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BitwiseOr</span></code></a></p></td>
<td><p>Returns bitwise <cite>or</cite> of two tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BitwiseXor.html#mindspore.ops.BitwiseXor" title="mindspore.ops.BitwiseXor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BitwiseXor</span></code></a></p></td>
<td><p>Returns bitwise <cite>xor</cite> of two tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Cdist.html#mindspore.ops.Cdist" title="mindspore.ops.Cdist"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Cdist</span></code></a></p></td>
<td><p>Computes batched the p-norm distance between each pair of the two collections of row vectors.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Ceil.html#mindspore.ops.Ceil" title="mindspore.ops.Ceil"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Ceil</span></code></a></p></td>
<td><p>向上取整函数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Conj.html#mindspore.ops.Conj" title="mindspore.ops.Conj"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Conj</span></code></a></p></td>
<td><p>Returns a tensor of complex numbers that are the complex conjugate of each element in input.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Cos.html#mindspore.ops.Cos" title="mindspore.ops.Cos"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Cos</span></code></a></p></td>
<td><p>Computes cosine of input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Cosh.html#mindspore.ops.Cosh" title="mindspore.ops.Cosh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Cosh</span></code></a></p></td>
<td><p>Computes hyperbolic cosine of input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.CumProd.html#mindspore.ops.CumProd" title="mindspore.ops.CumProd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CumProd</span></code></a></p></td>
<td><p>Computes the cumulative product of the tensor x along axis.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.CumSum.html#mindspore.ops.CumSum" title="mindspore.ops.CumSum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CumSum</span></code></a></p></td>
<td><p>在指定轴上计算输入Tensor的累加和。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Div.html#mindspore.ops.Div" title="mindspore.ops.Div"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Div</span></code></a></p></td>
<td><p>逐元素计算第一输入Tensor除以第二输入Tensor的商。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.DivNoNan.html#mindspore.ops.DivNoNan" title="mindspore.ops.DivNoNan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DivNoNan</span></code></a></p></td>
<td><p>Computes a safe divide and returns 0 if the y is zero.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Eps.html#mindspore.ops.Eps" title="mindspore.ops.Eps"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Eps</span></code></a></p></td>
<td><p>创建一个与输入数据类型和shape都相同的Tensor，元素值为对应数据类型能表达的最小值。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Equal.html#mindspore.ops.Equal" title="mindspore.ops.Equal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Equal</span></code></a></p></td>
<td><p>逐元素比较两个输入Tensor是否相等。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.EqualCount.html#mindspore.ops.EqualCount" title="mindspore.ops.EqualCount"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.EqualCount</span></code></a></p></td>
<td><p>Computes the number of the same elements of two tensors.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Erf.html#mindspore.ops.Erf" title="mindspore.ops.Erf"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Erf</span></code></a></p></td>
<td><p>逐元素计算 <cite>x</cite> 的高斯误差函数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Erfc.html#mindspore.ops.Erfc" title="mindspore.ops.Erfc"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Erfc</span></code></a></p></td>
<td><p>Computes the complementary error function of <cite>x</cite> element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Erfinv.html#mindspore.ops.Erfinv" title="mindspore.ops.Erfinv"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Erfinv</span></code></a></p></td>
<td><p>Computes the inverse error function of input.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Exp.html#mindspore.ops.Exp" title="mindspore.ops.Exp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Exp</span></code></a></p></td>
<td><p>Returns exponential of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Expm1.html#mindspore.ops.Expm1" title="mindspore.ops.Expm1"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Expm1</span></code></a></p></td>
<td><p>Returns exponential then minus 1 of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.FloatStatus.html#mindspore.ops.FloatStatus" title="mindspore.ops.FloatStatus"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FloatStatus</span></code></a></p></td>
<td><p>Determines if the elements contain Not a Number(NaN), infinite or negative infinite.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Floor.html#mindspore.ops.Floor" title="mindspore.ops.Floor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Floor</span></code></a></p></td>
<td><p>向下取整函数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.FloorDiv.html#mindspore.ops.FloorDiv" title="mindspore.ops.FloorDiv"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FloorDiv</span></code></a></p></td>
<td><p>Divides the first input tensor by the second input tensor element-wise and round down to the closest integer.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Ger.html#mindspore.ops.Ger" title="mindspore.ops.Ger"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Ger</span></code></a></p></td>
<td><p>Ger product of <cite>x1</cite> and <cite>x2</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Greater.html#mindspore.ops.Greater" title="mindspore.ops.Greater"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Greater</span></code></a></p></td>
<td><p>按元素比较输入参数 <span class="math notranslate nohighlight">\(x,y\)</span> 的值，输出结果为bool值。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.GreaterEqual.html#mindspore.ops.GreaterEqual" title="mindspore.ops.GreaterEqual"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.GreaterEqual</span></code></a></p></td>
<td><p>输入两个数据，逐元素比较第一个数据是否大于等于第二个数据。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.HistogramFixedWidth.html#mindspore.ops.HistogramFixedWidth" title="mindspore.ops.HistogramFixedWidth"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.HistogramFixedWidth</span></code></a></p></td>
<td><p>Returns a rank 1 histogram counting the number of entries in values that fall into every bin.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Imag.html#mindspore.ops.Imag" title="mindspore.ops.Imag"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Imag</span></code></a></p></td>
<td><p>Returns a new tensor containing imaginary value of the input.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.IndexAdd.html#mindspore.ops.IndexAdd" title="mindspore.ops.IndexAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.IndexAdd</span></code></a></p></td>
<td><p>Adds tensor <cite>y</cite> to specified axis and indices of tensor <cite>x</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.InplaceAdd.html#mindspore.ops.InplaceAdd" title="mindspore.ops.InplaceAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.InplaceAdd</span></code></a></p></td>
<td><p>Adds <cite>v</cite> into specified rows of <cite>x</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.InplaceSub.html#mindspore.ops.InplaceSub" title="mindspore.ops.InplaceSub"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.InplaceSub</span></code></a></p></td>
<td><p>Subtracts <cite>v</cite> into specified rows of <cite>x</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Inv.html#mindspore.ops.Inv" title="mindspore.ops.Inv"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Inv</span></code></a></p></td>
<td><p>按元素计算输入Tensor的倒数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Invert.html#mindspore.ops.Invert" title="mindspore.ops.Invert"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Invert</span></code></a></p></td>
<td><p>Flips all bits of input tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.IsInf.html#mindspore.ops.IsInf" title="mindspore.ops.IsInf"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.IsInf</span></code></a></p></td>
<td><p>Determines which elements are inf or -inf for each position</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.IsNan.html#mindspore.ops.IsNan" title="mindspore.ops.IsNan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.IsNan</span></code></a></p></td>
<td><p>判断输入数据每个位置上的值是否是NaN。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Lerp.html#mindspore.ops.Lerp" title="mindspore.ops.Lerp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Lerp</span></code></a></p></td>
<td><p>Does a linear interpolation of two tensors start and end based on a float or tensor weight.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Less.html#mindspore.ops.Less" title="mindspore.ops.Less"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Less</span></code></a></p></td>
<td><p>Computes the boolean value of <span class="math notranslate nohighlight">\(x &lt; y\)</span> element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.LessEqual.html#mindspore.ops.LessEqual" title="mindspore.ops.LessEqual"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LessEqual</span></code></a></p></td>
<td><p>逐元素计算 <span class="math notranslate nohighlight">\(x &lt;= y\)</span> 的bool值。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.LinSpace.html#mindspore.ops.LinSpace" title="mindspore.ops.LinSpace"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LinSpace</span></code></a></p></td>
<td><p>Returns a Tensor whose value is <cite>num</cite> evenly spaced in the interval <cite>start</cite> and <cite>stop</cite> (including <cite>start</cite> and <cite>stop</cite>), and the length of the output Tensor is <cite>num</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Log.html#mindspore.ops.Log" title="mindspore.ops.Log"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Log</span></code></a></p></td>
<td><p>逐元素返回Tensor的自然对数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Log1p.html#mindspore.ops.Log1p" title="mindspore.ops.Log1p"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Log1p</span></code></a></p></td>
<td><p>Returns the natural logarithm of one plus the input tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.LogicalAnd.html#mindspore.ops.LogicalAnd" title="mindspore.ops.LogicalAnd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LogicalAnd</span></code></a></p></td>
<td><p>Computes the “logical AND” of two tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.LogicalNot.html#mindspore.ops.LogicalNot" title="mindspore.ops.LogicalNot"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LogicalNot</span></code></a></p></td>
<td><p>Computes the “logical NOT” of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.LogicalOr.html#mindspore.ops.LogicalOr" title="mindspore.ops.LogicalOr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LogicalOr</span></code></a></p></td>
<td><p>Computes the “logical OR” of two tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.LpNorm.html#mindspore.ops.LpNorm" title="mindspore.ops.LpNorm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LpNorm</span></code></a></p></td>
<td><p>Returns the matrix norm or vector norm of a given tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.MatMul.html#mindspore.ops.MatMul" title="mindspore.ops.MatMul"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MatMul</span></code></a></p></td>
<td><p>将矩阵 <cite>a</cite> 和矩阵 <cite>b</cite> 相乘。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.MatrixInverse.html#mindspore.ops.MatrixInverse" title="mindspore.ops.MatrixInverse"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MatrixInverse</span></code></a></p></td>
<td><p>Returns the inverse of the input matrix.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Maximum.html#mindspore.ops.Maximum" title="mindspore.ops.Maximum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Maximum</span></code></a></p></td>
<td><p>计算输入Tensor的最大值。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Minimum.html#mindspore.ops.Minimum" title="mindspore.ops.Minimum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Minimum</span></code></a></p></td>
<td><p>Computes the minimum of input tensors element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Mod.html#mindspore.ops.Mod" title="mindspore.ops.Mod"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Mod</span></code></a></p></td>
<td><p>Computes the remainder of dividing the first input tensor by the second input tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Mul.html#mindspore.ops.Mul" title="mindspore.ops.Mul"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Mul</span></code></a></p></td>
<td><p>两个Tensor逐元素相乘。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.MulNoNan.html#mindspore.ops.MulNoNan" title="mindspore.ops.MulNoNan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MulNoNan</span></code></a></p></td>
<td><p>Computes <cite>x</cite> * <cite>y</cite> element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Neg.html#mindspore.ops.Neg" title="mindspore.ops.Neg"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Neg</span></code></a></p></td>
<td><p>计算输入x的相反数并返回。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.NMSWithMask.html#mindspore.ops.NMSWithMask" title="mindspore.ops.NMSWithMask"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NMSWithMask</span></code></a></p></td>
<td><p>When object detection problem is performed in the computer vision field, object detection algorithm generates a plurality of bounding boxes.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.NotEqual.html#mindspore.ops.NotEqual" title="mindspore.ops.NotEqual"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NotEqual</span></code></a></p></td>
<td><p>计算两个Tensor是否不相等。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.NPUAllocFloatStatus.html#mindspore.ops.NPUAllocFloatStatus" title="mindspore.ops.NPUAllocFloatStatus"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NPUAllocFloatStatus</span></code></a></p></td>
<td><p>Allocates a flag to store the overflow status.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.NPUClearFloatStatus.html#mindspore.ops.NPUClearFloatStatus" title="mindspore.ops.NPUClearFloatStatus"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NPUClearFloatStatus</span></code></a></p></td>
<td><p>Clears the flag which stores the overflow status.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.NPUGetFloatStatus.html#mindspore.ops.NPUGetFloatStatus" title="mindspore.ops.NPUGetFloatStatus"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NPUGetFloatStatus</span></code></a></p></td>
<td><p>Updates the flag which is the output tensor of <cite>NPUAllocFloatStatus</cite> with the latest overflow status.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Pow.html#mindspore.ops.Pow" title="mindspore.ops.Pow"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Pow</span></code></a></p></td>
<td><p>计算 <cite>x</cite> 中每个元素的 <cite>y</cite> 次幂。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Real.html#mindspore.ops.Real" title="mindspore.ops.Real"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Real</span></code></a></p></td>
<td><p>Returns a Tensor that is the real part of the input.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.RealDiv.html#mindspore.ops.RealDiv" title="mindspore.ops.RealDiv"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.RealDiv</span></code></a></p></td>
<td><p>Divides the first input tensor by the second input tensor in floating-point type element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Reciprocal.html#mindspore.ops.Reciprocal" title="mindspore.ops.Reciprocal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Reciprocal</span></code></a></p></td>
<td><p>Returns reciprocal of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceAll.html#mindspore.ops.ReduceAll" title="mindspore.ops.ReduceAll"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceAll</span></code></a></p></td>
<td><p>Reduces a dimension of a tensor by the “logicalAND” of all elements in the dimension, by default.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceAny.html#mindspore.ops.ReduceAny" title="mindspore.ops.ReduceAny"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceAny</span></code></a></p></td>
<td><p>Reduces a dimension of a tensor by the “logical OR” of all elements in the dimension, by default.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceMax.html#mindspore.ops.ReduceMax" title="mindspore.ops.ReduceMax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceMax</span></code></a></p></td>
<td><p>Reduces a dimension of a tensor by the maximum value in this dimension, by default.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceMean.html#mindspore.ops.ReduceMean" title="mindspore.ops.ReduceMean"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceMean</span></code></a></p></td>
<td><p>Reduces a dimension of a tensor by averaging all elements in the dimension, by default.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceMin.html#mindspore.ops.ReduceMin" title="mindspore.ops.ReduceMin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceMin</span></code></a></p></td>
<td><p>Reduces a dimension of a tensor by the minimum value in the dimension, by default.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceProd.html#mindspore.ops.ReduceProd" title="mindspore.ops.ReduceProd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceProd</span></code></a></p></td>
<td><p>Reduces a dimension of a tensor by multiplying all elements in the dimension, by default.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceSum.html#mindspore.ops.ReduceSum" title="mindspore.ops.ReduceSum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceSum</span></code></a></p></td>
<td><p>Reduces a dimension of a tensor by summing all elements in the dimension, by default.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Round.html#mindspore.ops.Round" title="mindspore.ops.Round"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Round</span></code></a></p></td>
<td><p>Returns half to even of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Rsqrt.html#mindspore.ops.Rsqrt" title="mindspore.ops.Rsqrt"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Rsqrt</span></code></a></p></td>
<td><p>Computes reciprocal of square root of input tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Sign.html#mindspore.ops.Sign" title="mindspore.ops.Sign"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Sign</span></code></a></p></td>
<td><p>Performs sign on the tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Sin.html#mindspore.ops.Sin" title="mindspore.ops.Sin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Sin</span></code></a></p></td>
<td><p>Computes sine of the input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Sinh.html#mindspore.ops.Sinh" title="mindspore.ops.Sinh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Sinh</span></code></a></p></td>
<td><p>Computes hyperbolic sine of the input element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Sqrt.html#mindspore.ops.Sqrt" title="mindspore.ops.Sqrt"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Sqrt</span></code></a></p></td>
<td><p>Returns square root of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Square.html#mindspore.ops.Square" title="mindspore.ops.Square"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Square</span></code></a></p></td>
<td><p>Returns square of a tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SquaredDifference.html#mindspore.ops.SquaredDifference" title="mindspore.ops.SquaredDifference"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SquaredDifference</span></code></a></p></td>
<td><p>Subtracts the second input tensor from the first input tensor element-wise and returns square of it.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SquareSumAll.html#mindspore.ops.SquareSumAll" title="mindspore.ops.SquareSumAll"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SquareSumAll</span></code></a></p></td>
<td><p>Returns the square sum of a tensor element-wise</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Sub.html#mindspore.ops.Sub" title="mindspore.ops.Sub"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Sub</span></code></a></p></td>
<td><p>逐元素用第一个输入Tensor减去第二个输入Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Tan.html#mindspore.ops.Tan" title="mindspore.ops.Tan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Tan</span></code></a></p></td>
<td><p>Computes tangent of <cite>x</cite> element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.TruncateDiv.html#mindspore.ops.TruncateDiv" title="mindspore.ops.TruncateDiv"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TruncateDiv</span></code></a></p></td>
<td><p>Divides the first input tensor by the second input tensor element-wise for integer types, negative numbers will round fractional quantities towards zero.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.TruncateMod.html#mindspore.ops.TruncateMod" title="mindspore.ops.TruncateMod"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TruncateMod</span></code></a></p></td>
<td><p>Returns the remainder of division element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Xdivy.html#mindspore.ops.Xdivy" title="mindspore.ops.Xdivy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Xdivy</span></code></a></p></td>
<td><p>Divides the first input tensor by the second input tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Xlogy.html#mindspore.ops.Xlogy" title="mindspore.ops.Xlogy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Xlogy</span></code></a></p></td>
<td><p>Computes the first input tensor multiplied by the logarithm of second input tensor element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id3">
<h3>数组算子<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ApplyFtrl.html#mindspore.ops.ApplyFtrl" title="mindspore.ops.ApplyFtrl"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ApplyFtrl</span></code></a></p></td>
<td><p>Updates relevant entries according to the FTRL scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Argmax.html#mindspore.ops.Argmax" title="mindspore.ops.Argmax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Argmax</span></code></a></p></td>
<td><p>返回输入Tensor在指定轴上的最大值索引。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ArgMaxWithValue.html#mindspore.ops.ArgMaxWithValue" title="mindspore.ops.ArgMaxWithValue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ArgMaxWithValue</span></code></a></p></td>
<td><p>根据指定的索引计算最大值，并返回索引和值。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Argmin.html#mindspore.ops.Argmin" title="mindspore.ops.Argmin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Argmin</span></code></a></p></td>
<td><p>返回输入Tensor在指定轴上的最小值索引。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ArgMinWithValue.html#mindspore.ops.ArgMinWithValue" title="mindspore.ops.ArgMinWithValue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ArgMinWithValue</span></code></a></p></td>
<td><p>根据指定的索引计算最小值，并返回索引和值。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BatchToSpace.html#mindspore.ops.BatchToSpace" title="mindspore.ops.BatchToSpace"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BatchToSpace</span></code></a></p></td>
<td><p>Divides batch dimension with blocks and interleaves these blocks back into spatial dimensions.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BatchToSpaceND.html#mindspore.ops.BatchToSpaceND" title="mindspore.ops.BatchToSpaceND"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BatchToSpaceND</span></code></a></p></td>
<td><p>Divides batch dimension with blocks and interleaves these blocks back into spatial dimensions.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BroadcastTo.html#mindspore.ops.BroadcastTo" title="mindspore.ops.BroadcastTo"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BroadcastTo</span></code></a></p></td>
<td><p>对输入Tensor广播到指定shape。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Cast.html#mindspore.ops.Cast" title="mindspore.ops.Cast"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Cast</span></code></a></p></td>
<td><p>返回指定新数据类型后的Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Concat.html#mindspore.ops.Concat" title="mindspore.ops.Concat"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Concat</span></code></a></p></td>
<td><p>在指定轴上拼接输入Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.DepthToSpace.html#mindspore.ops.DepthToSpace" title="mindspore.ops.DepthToSpace"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DepthToSpace</span></code></a></p></td>
<td><p>Rearrange blocks of depth data into spatial dimensions.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.DType.html#mindspore.ops.DType" title="mindspore.ops.DType"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DType</span></code></a></p></td>
<td><p>Returns the data type of the input tensor as mindspore.dtype.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.DynamicShape.html#mindspore.ops.DynamicShape" title="mindspore.ops.DynamicShape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DynamicShape</span></code></a></p></td>
<td><p>与 <cite>TensorShape</cite> 相同， <cite>DynamicShape</cite> 将会被 <cite>TensorShape</cite> 替换，请使用 <cite>TensorShape</cite> 。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.EditDistance.html#mindspore.ops.EditDistance" title="mindspore.ops.EditDistance"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.EditDistance</span></code></a></p></td>
<td><p>Computes the Levenshtein Edit Distance.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.EmbeddingLookup.html#mindspore.ops.EmbeddingLookup" title="mindspore.ops.EmbeddingLookup"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.EmbeddingLookup</span></code></a></p></td>
<td><p>根据指定的索引，返回输入Tensor的切片。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ExpandDims.html#mindspore.ops.ExpandDims" title="mindspore.ops.ExpandDims"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ExpandDims</span></code></a></p></td>
<td><p>Adds an additional dimension to <cite>input_x</cite> at the given axis.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ExtractVolumePatches.html#mindspore.ops.ExtractVolumePatches" title="mindspore.ops.ExtractVolumePatches"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ExtractVolumePatches</span></code></a></p></td>
<td><p>Extract patches from input and put them in the “depth” output dimension.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Eye.html#mindspore.ops.Eye" title="mindspore.ops.Eye"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Eye</span></code></a></p></td>
<td><p>创建一个主对角线上元素为1，其余元素为0的Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Fill.html#mindspore.ops.Fill" title="mindspore.ops.Fill"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Fill</span></code></a></p></td>
<td><p>创建一个指定shape的Tensor，并用指定值填充。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.FusedSparseFtrl.html#mindspore.ops.FusedSparseFtrl" title="mindspore.ops.FusedSparseFtrl"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.FusedSparseFtrl</span></code></a></p></td>
<td><p>Merges the duplicate value of the gradient and then updates relevant entries according to the FTRL-proximal scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Gather.html#mindspore.ops.Gather" title="mindspore.ops.Gather"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Gather</span></code></a></p></td>
<td><p>返回输入Tensor在指定 <cite>axis</cite> 上 <cite>input_indices</cite> 索引对应的元素组成的切片。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.GatherD.html#mindspore.ops.GatherD" title="mindspore.ops.GatherD"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.GatherD</span></code></a></p></td>
<td><p>沿指定轴收集元素。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.GatherNd.html#mindspore.ops.GatherNd" title="mindspore.ops.GatherNd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.GatherNd</span></code></a></p></td>
<td><p>根据索引获取输入数据指定位置上的元素。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Identity.html#mindspore.ops.Identity" title="mindspore.ops.Identity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Identity</span></code></a></p></td>
<td><p>返回与输入具有相同shape和值得Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.InplaceUpdate.html#mindspore.ops.InplaceUpdate" title="mindspore.ops.InplaceUpdate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.InplaceUpdate</span></code></a></p></td>
<td><p>Updates specified rows with values in <cite>v</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.InvertPermutation.html#mindspore.ops.InvertPermutation" title="mindspore.ops.InvertPermutation"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.InvertPermutation</span></code></a></p></td>
<td><p>Computes the inverse of an index permutation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.IsFinite.html#mindspore.ops.IsFinite" title="mindspore.ops.IsFinite"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.IsFinite</span></code></a></p></td>
<td><p>Determines which elements are finite for each position.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.IsInstance.html#mindspore.ops.IsInstance" title="mindspore.ops.IsInstance"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.IsInstance</span></code></a></p></td>
<td><p>Checks whether an object is an instance of a target type.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.IsSubClass.html#mindspore.ops.IsSubClass" title="mindspore.ops.IsSubClass"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.IsSubClass</span></code></a></p></td>
<td><p>Checks whether this type is a sub-class of another type.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.MaskedFill.html#mindspore.ops.MaskedFill" title="mindspore.ops.MaskedFill"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MaskedFill</span></code></a></p></td>
<td><p>掩码为True位置的值将被指定的值填充。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.MaskedSelect.html#mindspore.ops.MaskedSelect" title="mindspore.ops.MaskedSelect"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MaskedSelect</span></code></a></p></td>
<td><p>使用布尔掩码对输入进行选择得到一个新的一维Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Meshgrid.html#mindspore.ops.Meshgrid" title="mindspore.ops.Meshgrid"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Meshgrid</span></code></a></p></td>
<td><p>从给定的Tensor生成网格矩阵。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Ones.html#mindspore.ops.Ones" title="mindspore.ops.Ones"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Ones</span></code></a></p></td>
<td><p>Creates a tensor filled with value ones.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.OnesLike.html#mindspore.ops.OnesLike" title="mindspore.ops.OnesLike"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.OnesLike</span></code></a></p></td>
<td><p>返回值为1的Tensor，shape和数据类型与输入相同。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Padding.html#mindspore.ops.Padding" title="mindspore.ops.Padding"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Padding</span></code></a></p></td>
<td><p>Extends the last dimension of the input tensor from 1 to pad_dim_size, by filling with 0.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ParallelConcat.html#mindspore.ops.ParallelConcat" title="mindspore.ops.ParallelConcat"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ParallelConcat</span></code></a></p></td>
<td><p>Concats tensor in the first dimension.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Randperm.html#mindspore.ops.Randperm" title="mindspore.ops.Randperm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Randperm</span></code></a></p></td>
<td><p>Generates n random samples from 0 to n-1 without repeating.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Rank.html#mindspore.ops.Rank" title="mindspore.ops.Rank"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Rank</span></code></a></p></td>
<td><p>Returns the rank of a tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Reshape.html#mindspore.ops.Reshape" title="mindspore.ops.Reshape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Reshape</span></code></a></p></td>
<td><p>基于给定的shape，对输入Tensor进行重新排列。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ResizeNearestNeighbor.html#mindspore.ops.ResizeNearestNeighbor" title="mindspore.ops.ResizeNearestNeighbor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ResizeNearestNeighbor</span></code></a></p></td>
<td><p>Resizes the input tensor by using the nearest neighbor algorithm.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ReverseSequence.html#mindspore.ops.ReverseSequence" title="mindspore.ops.ReverseSequence"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReverseSequence</span></code></a></p></td>
<td><p>Reverses variable length slices.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ReverseV2.html#mindspore.ops.ReverseV2" title="mindspore.ops.ReverseV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReverseV2</span></code></a></p></td>
<td><p>Reverses specific dimensions of a tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Rint.html#mindspore.ops.Rint" title="mindspore.ops.Rint"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Rint</span></code></a></p></td>
<td><p>Returns an integer that is closest to x element-wise.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SameTypeShape.html#mindspore.ops.SameTypeShape" title="mindspore.ops.SameTypeShape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SameTypeShape</span></code></a></p></td>
<td><p>Checks whether the data type and shape of two tensors are the same.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScalarCast.html#mindspore.ops.ScalarCast" title="mindspore.ops.ScalarCast"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScalarCast</span></code></a></p></td>
<td><p>Casts the input scalar to another type.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScalarToArray.html#mindspore.ops.ScalarToArray" title="mindspore.ops.ScalarToArray"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScalarToArray</span></code></a></p></td>
<td><p>Converts a scalar to a <cite>Tensor</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScalarToTensor.html#mindspore.ops.ScalarToTensor" title="mindspore.ops.ScalarToTensor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScalarToTensor</span></code></a></p></td>
<td><p>Converts a scalar to a <cite>Tensor</cite>, and converts the data type to the specified type.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterAdd.html#mindspore.ops.ScatterAdd" title="mindspore.ops.ScatterAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterAdd</span></code></a></p></td>
<td><p>Updates the value of the input tensor through the addition operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterDiv.html#mindspore.ops.ScatterDiv" title="mindspore.ops.ScatterDiv"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterDiv</span></code></a></p></td>
<td><p>Updates the value of the input tensor through the divide operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterMax.html#mindspore.ops.ScatterMax" title="mindspore.ops.ScatterMax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterMax</span></code></a></p></td>
<td><p>Updates the value of the input tensor through the maximum operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterMin.html#mindspore.ops.ScatterMin" title="mindspore.ops.ScatterMin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterMin</span></code></a></p></td>
<td><p>Updates the value of the input tensor through the minimum operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterMul.html#mindspore.ops.ScatterMul" title="mindspore.ops.ScatterMul"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterMul</span></code></a></p></td>
<td><p>Updates the value of the input tensor through the multiply operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterNd.html#mindspore.ops.ScatterNd" title="mindspore.ops.ScatterNd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterNd</span></code></a></p></td>
<td><p>Scatters a tensor into a new tensor depending on the specified indices.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterNdAdd.html#mindspore.ops.ScatterNdAdd" title="mindspore.ops.ScatterNdAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterNdAdd</span></code></a></p></td>
<td><p>Applies sparse addition to individual values or slices in a tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterNdSub.html#mindspore.ops.ScatterNdSub" title="mindspore.ops.ScatterNdSub"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterNdSub</span></code></a></p></td>
<td><p>Applies sparse subtraction to individual values or slices in a tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterNdUpdate.html#mindspore.ops.ScatterNdUpdate" title="mindspore.ops.ScatterNdUpdate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterNdUpdate</span></code></a></p></td>
<td><p>Updates tensor values by using input indices and value.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterNonAliasingAdd.html#mindspore.ops.ScatterNonAliasingAdd" title="mindspore.ops.ScatterNonAliasingAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterNonAliasingAdd</span></code></a></p></td>
<td><p>Applies sparse addition to the input using individual values or slices.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterSub.html#mindspore.ops.ScatterSub" title="mindspore.ops.ScatterSub"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterSub</span></code></a></p></td>
<td><p>Updates the value of the input tensor through the subtraction operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ScatterUpdate.html#mindspore.ops.ScatterUpdate" title="mindspore.ops.ScatterUpdate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScatterUpdate</span></code></a></p></td>
<td><p>Updates tensor values by using input indices and value.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Select.html#mindspore.ops.Select" title="mindspore.ops.Select"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Select</span></code></a></p></td>
<td><p>Returns the selected elements, either from input <span class="math notranslate nohighlight">\(x\)</span> or input <span class="math notranslate nohighlight">\(y\)</span>, depending on the <cite>condition</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Shape.html#mindspore.ops.Shape" title="mindspore.ops.Shape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Shape</span></code></a></p></td>
<td><p>Returns the shape of the input tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Size.html#mindspore.ops.Size" title="mindspore.ops.Size"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Size</span></code></a></p></td>
<td><p>返回一个Scalar，类型为整数，表示输入Tensor的大小，即Tensor中元素的总数。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Slice.html#mindspore.ops.Slice" title="mindspore.ops.Slice"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Slice</span></code></a></p></td>
<td><p>Slices a tensor in the specified shape.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Sort.html#mindspore.ops.Sort" title="mindspore.ops.Sort"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Sort</span></code></a></p></td>
<td><p>Sorts the elements of the input tensor along a given dimension in ascending order by value.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SpaceToBatch.html#mindspore.ops.SpaceToBatch" title="mindspore.ops.SpaceToBatch"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SpaceToBatch</span></code></a></p></td>
<td><p>SpaceToBatch is deprecated.</p></td>
<td><p>Deprecated</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SpaceToBatchND.html#mindspore.ops.SpaceToBatchND" title="mindspore.ops.SpaceToBatchND"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SpaceToBatchND</span></code></a></p></td>
<td><p>Divides spatial dimensions into blocks and combines the block size with the original batch.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SpaceToDepth.html#mindspore.ops.SpaceToDepth" title="mindspore.ops.SpaceToDepth"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SpaceToDepth</span></code></a></p></td>
<td><p>Rearrange blocks of spatial data into depth.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseApplyFtrl.html#mindspore.ops.SparseApplyFtrl" title="mindspore.ops.SparseApplyFtrl"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseApplyFtrl</span></code></a></p></td>
<td><p>Updates relevant entries according to the FTRL-proximal scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseApplyFtrlV2.html#mindspore.ops.SparseApplyFtrlV2" title="mindspore.ops.SparseApplyFtrlV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseApplyFtrlV2</span></code></a></p></td>
<td><p>Updates relevant entries according to the FTRL-proximal scheme.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseGatherV2.html#mindspore.ops.SparseGatherV2" title="mindspore.ops.SparseGatherV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseGatherV2</span></code></a></p></td>
<td><p>Returns a slice of input tensor based on the specified indices and axis.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Split.html#mindspore.ops.Split" title="mindspore.ops.Split"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Split</span></code></a></p></td>
<td><p>Splits the input tensor into output_num of tensors along the given axis and output numbers.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SplitV.html#mindspore.ops.SplitV" title="mindspore.ops.SplitV"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SplitV</span></code></a></p></td>
<td><p>Splits the input tensor into num_split tensors along the given dimension.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Squeeze.html#mindspore.ops.Squeeze" title="mindspore.ops.Squeeze"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Squeeze</span></code></a></p></td>
<td><p>返回删除指定 <cite>axis</cite> 中大小为1的维度后的Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.StridedSlice.html#mindspore.ops.StridedSlice" title="mindspore.ops.StridedSlice"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.StridedSlice</span></code></a></p></td>
<td><p>Extracts a strided slice of a tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.TensorScatterAdd.html#mindspore.ops.TensorScatterAdd" title="mindspore.ops.TensorScatterAdd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TensorScatterAdd</span></code></a></p></td>
<td><p>Creates a new tensor by adding the values from the positions in <cite>input_x</cite> indicated by <cite>indices</cite>, with values from <cite>updates</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.TensorScatterMax.html#mindspore.ops.TensorScatterMax" title="mindspore.ops.TensorScatterMax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TensorScatterMax</span></code></a></p></td>
<td><p>By comparing the value at the position indicated by the index in input_x with the value in the update, the value at the index will eventually be equal to the largest one to create a new tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.TensorScatterMin.html#mindspore.ops.TensorScatterMin" title="mindspore.ops.TensorScatterMin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TensorScatterMin</span></code></a></p></td>
<td><p>By comparing the value at the position indicated by the index in input_x with the value in the <cite>updates</cite>, the value at the index will eventually be equal to the smallest one to create a new tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.TensorScatterSub.html#mindspore.ops.TensorScatterSub" title="mindspore.ops.TensorScatterSub"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TensorScatterSub</span></code></a></p></td>
<td><p>Creates a new tensor by subtracting the values from the positions in <cite>input_x</cite> indicated by <cite>indices</cite>, with values from <cite>updates</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.TensorScatterUpdate.html#mindspore.ops.TensorScatterUpdate" title="mindspore.ops.TensorScatterUpdate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TensorScatterUpdate</span></code></a></p></td>
<td><p>Creates a new tensor by updating the positions in <cite>input_x</cite> indicated by <cite>indices</cite>, with values from <cite>update</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.TensorShape.html#mindspore.ops.TensorShape" title="mindspore.ops.TensorShape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TensorShape</span></code></a></p></td>
<td><p>返回输入Tensor的Shape。</p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Tile.html#mindspore.ops.Tile" title="mindspore.ops.Tile"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Tile</span></code></a></p></td>
<td><p>按照给定的次数复制输入Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Transpose.html#mindspore.ops.Transpose" title="mindspore.ops.Transpose"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Transpose</span></code></a></p></td>
<td><p>Permutes the dimensions of the input tensor according to input permutation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.TupleToArray.html#mindspore.ops.TupleToArray" title="mindspore.ops.TupleToArray"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TupleToArray</span></code></a></p></td>
<td><p>Converts a tuple to a tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Unique.html#mindspore.ops.Unique" title="mindspore.ops.Unique"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Unique</span></code></a></p></td>
<td><p>Returns the unique elements of input tensor and also return a tensor containing the index of each value of input tensor corresponding to the output unique tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.UniqueWithPad.html#mindspore.ops.UniqueWithPad" title="mindspore.ops.UniqueWithPad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UniqueWithPad</span></code></a></p></td>
<td><p>Returns unique elements and relative indexes in 1-D tensor, filled with padding num.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentMax.html#mindspore.ops.UnsortedSegmentMax" title="mindspore.ops.UnsortedSegmentMax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UnsortedSegmentMax</span></code></a></p></td>
<td><p>Computes the maximum along segments of a tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentMin.html#mindspore.ops.UnsortedSegmentMin" title="mindspore.ops.UnsortedSegmentMin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UnsortedSegmentMin</span></code></a></p></td>
<td><p>Computes the minimum of a tensor along segments.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentProd.html#mindspore.ops.UnsortedSegmentProd" title="mindspore.ops.UnsortedSegmentProd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UnsortedSegmentProd</span></code></a></p></td>
<td><p>Computes the product of a tensor along segments.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.UnsortedSegmentSum.html#mindspore.ops.UnsortedSegmentSum" title="mindspore.ops.UnsortedSegmentSum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UnsortedSegmentSum</span></code></a></p></td>
<td><p>Computes the sum of a tensor along segments.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Zeros.html#mindspore.ops.Zeros" title="mindspore.ops.Zeros"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Zeros</span></code></a></p></td>
<td><p>Creates a tensor filled with value zeros.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ZerosLike.html#mindspore.ops.ZerosLike" title="mindspore.ops.ZerosLike"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ZerosLike</span></code></a></p></td>
<td><p>返回值为0的Tensor，其shape和数据类型与输入Tensor相同。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id4">
<h3>通信算子<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h3>
<p>注意，以下列表中的接口需要先配置好通信环境变量。</p>
<p>针对Ascend设备，用户需要准备rank表，设置rank_id和device_id，详见 <a class="reference external" href="https://www.mindspore.cn/tutorials/zh-CN/master/intermediate/distributed_training/distributed_training_ascend.html#id12">Ascend指导文档 </a> 。</p>
<p>针对GPU设备，用户需要准备host文件和mpi，详见 <a class="reference external" href="https://www.mindspore.cn/tutorials/zh-CN/master/intermediate/distributed_training/distributed_training_gpu.html#id6">GPU指导文档 </a> 。</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AllGather.html#mindspore.ops.AllGather" title="mindspore.ops.AllGather"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AllGather</span></code></a></p></td>
<td><p>在指定的通信组中汇聚Tensor。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.AllReduce.html#mindspore.ops.AllReduce" title="mindspore.ops.AllReduce"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AllReduce</span></code></a></p></td>
<td><p>使用指定方式对通信组内的所有设备的Tensor数据进行规约操作，所有设备都得到相同的结果。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AlltoAll.html#mindspore.ops.AlltoAll" title="mindspore.ops.AlltoAll"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AlltoAll</span></code></a></p></td>
<td><p>AlltoAll is a collective operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Broadcast.html#mindspore.ops.Broadcast" title="mindspore.ops.Broadcast"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Broadcast</span></code></a></p></td>
<td><p>对输入数据整租广播。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.NeighborExchange.html#mindspore.ops.NeighborExchange" title="mindspore.ops.NeighborExchange"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NeighborExchange</span></code></a></p></td>
<td><p>NeighborExchange is a collective operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.NeighborExchangeV2.html#mindspore.ops.NeighborExchangeV2" title="mindspore.ops.NeighborExchangeV2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NeighborExchangeV2</span></code></a></p></td>
<td><p>NeighborExchangeV2 is a collective operation.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceOp.html#mindspore.ops.ReduceOp" title="mindspore.ops.ReduceOp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceOp</span></code></a></p></td>
<td><p>Operation options for reducing tensors.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ReduceScatter.html#mindspore.ops.ReduceScatter" title="mindspore.ops.ReduceScatter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ReduceScatter</span></code></a></p></td>
<td><p>Reduces and scatters tensors from the specified communication group.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id5">
<h3>调试算子<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.HistogramSummary.html#mindspore.ops.HistogramSummary" title="mindspore.ops.HistogramSummary"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.HistogramSummary</span></code></a></p></td>
<td><p>Outputs the tensor to protocol buffer through histogram summary operator.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.HookBackward.html#mindspore.ops.HookBackward" title="mindspore.ops.HookBackward"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.HookBackward</span></code></a></p></td>
<td><p>This operation is used as a tag to hook gradient in intermediate variables.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.ImageSummary.html#mindspore.ops.ImageSummary" title="mindspore.ops.ImageSummary"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ImageSummary</span></code></a></p></td>
<td><p>Outputs the image tensor to protocol buffer through image summary operator.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.InsertGradientOf.html#mindspore.ops.InsertGradientOf" title="mindspore.ops.InsertGradientOf"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.InsertGradientOf</span></code></a></p></td>
<td><p>Attaches callback to the graph node that will be invoked on the node’s gradient.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Print.html#mindspore.ops.Print" title="mindspore.ops.Print"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Print</span></code></a></p></td>
<td><p>Outputs the tensor or string to stdout.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.ScalarSummary.html#mindspore.ops.ScalarSummary" title="mindspore.ops.ScalarSummary"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.ScalarSummary</span></code></a></p></td>
<td><p>Outputs a scalar to a protocol buffer through a scalar summary operator.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.TensorSummary.html#mindspore.ops.TensorSummary" title="mindspore.ops.TensorSummary"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TensorSummary</span></code></a></p></td>
<td><p>Outputs a tensor to a protocol buffer through a tensor summary operator.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id6">
<h3>随机算子<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Gamma.html#mindspore.ops.Gamma" title="mindspore.ops.Gamma"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Gamma</span></code></a></p></td>
<td><p>根据概率密度函数分布生成随机正值浮点数x。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.LogUniformCandidateSampler.html#mindspore.ops.LogUniformCandidateSampler" title="mindspore.ops.LogUniformCandidateSampler"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.LogUniformCandidateSampler</span></code></a></p></td>
<td><p>使用log-uniform(Zipfian)分布对一组类进行采样。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Multinomial.html#mindspore.ops.Multinomial" title="mindspore.ops.Multinomial"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Multinomial</span></code></a></p></td>
<td><p>Returns a tensor sampled from the multinomial probability distribution located in the corresponding row of tensor input.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Poisson.html#mindspore.ops.Poisson" title="mindspore.ops.Poisson"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Poisson</span></code></a></p></td>
<td><p>Produces random non-negative integer values i, distributed according to discrete probability function:</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.RandomCategorical.html#mindspore.ops.RandomCategorical" title="mindspore.ops.RandomCategorical"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.RandomCategorical</span></code></a></p></td>
<td><p>Generates random samples from a given categorical distribution tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.RandomChoiceWithMask.html#mindspore.ops.RandomChoiceWithMask" title="mindspore.ops.RandomChoiceWithMask"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.RandomChoiceWithMask</span></code></a></p></td>
<td><p>Generates a random sample as index tensor with a mask tensor from a given tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.StandardLaplace.html#mindspore.ops.StandardLaplace" title="mindspore.ops.StandardLaplace"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.StandardLaplace</span></code></a></p></td>
<td><p>Generates random numbers according to the Laplace random number distribution (mean=0, lambda=1).</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.StandardNormal.html#mindspore.ops.StandardNormal" title="mindspore.ops.StandardNormal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.StandardNormal</span></code></a></p></td>
<td><p>Generates random numbers according to the standard Normal (or Gaussian) random number distribution.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.UniformCandidateSampler.html#mindspore.ops.UniformCandidateSampler" title="mindspore.ops.UniformCandidateSampler"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UniformCandidateSampler</span></code></a></p></td>
<td><p>Uniform candidate sampler.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.UniformInt.html#mindspore.ops.UniformInt" title="mindspore.ops.UniformInt"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UniformInt</span></code></a></p></td>
<td><p>Produces random integer values i, uniformly distributed on the closed interval [minval, maxval), that is, distributed according to the discrete probability function:</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.UniformReal.html#mindspore.ops.UniformReal" title="mindspore.ops.UniformReal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.UniformReal</span></code></a></p></td>
<td><p>产生随机的浮点数，均匀分布在[0，1)范围内。</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id7">
<h3>图像算子<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.CropAndResize.html#mindspore.ops.CropAndResize" title="mindspore.ops.CropAndResize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CropAndResize</span></code></a></p></td>
<td><p>Extracts crops from the input image tensor and resizes them.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id8">
<h3>稀疏算子<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseToDense.html#mindspore.ops.SparseToDense" title="mindspore.ops.SparseToDense"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseToDense</span></code></a></p></td>
<td><p>Converts a sparse representation into a dense tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.SparseTensorDenseMatmul.html#mindspore.ops.SparseTensorDenseMatmul" title="mindspore.ops.SparseTensorDenseMatmul"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.SparseTensorDenseMatmul</span></code></a></p></td>
<td><p>Multiplies sparse matrix <cite>A</cite> by dense matrix <cite>B</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id9">
<h3>自定义算子<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Custom.html#mindspore.ops.Custom" title="mindspore.ops.Custom"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Custom</span></code></a></p></td>
<td><p><cite>Custom</cite> primitive is used for user defined operators and is to enhance the expressive ability of built-in primitives.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id10">
<h3>其他算子<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h3>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Assign.html#mindspore.ops.Assign" title="mindspore.ops.Assign"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Assign</span></code></a></p></td>
<td><p>Assigns <cite>Parameter</cite> with a value.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.BoundingBoxDecode.html#mindspore.ops.BoundingBoxDecode" title="mindspore.ops.BoundingBoxDecode"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BoundingBoxDecode</span></code></a></p></td>
<td><p>Decodes bounding boxes locations.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.BoundingBoxEncode.html#mindspore.ops.BoundingBoxEncode" title="mindspore.ops.BoundingBoxEncode"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.BoundingBoxEncode</span></code></a></p></td>
<td><p>Encodes bounding boxes locations.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.CheckBprop.html#mindspore.ops.CheckBprop" title="mindspore.ops.CheckBprop"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CheckBprop</span></code></a></p></td>
<td><p>Checks whether the data type and the shape of corresponding elements from tuples x and y are the same.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.CheckValid.html#mindspore.ops.CheckValid" title="mindspore.ops.CheckValid"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CheckValid</span></code></a></p></td>
<td><p>Checks bounding box.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Depend.html#mindspore.ops.Depend" title="mindspore.ops.Depend"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Depend</span></code></a></p></td>
<td><p>Depend is used for processing dependency operations.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.InTopK.html#mindspore.ops.InTopK" title="mindspore.ops.InTopK"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.InTopK</span></code></a></p></td>
<td><p>Determines whether the targets are in the top <cite>k</cite> predictions.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.IOU.html#mindspore.ops.IOU" title="mindspore.ops.IOU"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.IOU</span></code></a></p></td>
<td><p>Calculates intersection over union for boxes.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.NoRepeatNGram.html#mindspore.ops.NoRepeatNGram" title="mindspore.ops.NoRepeatNGram"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.NoRepeatNGram</span></code></a></p></td>
<td><p>Updates log_probs with repeat n-grams.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Partial.html#mindspore.ops.Partial" title="mindspore.ops.Partial"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Partial</span></code></a></p></td>
<td><p>Makes a partial function instance.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.PopulationCount.html#mindspore.ops.PopulationCount" title="mindspore.ops.PopulationCount"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.PopulationCount</span></code></a></p></td>
<td><p>Calculates population count.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functional">
<h2>functional<a class="headerlink" href="#functional" title="Permalink to this headline">¶</a></h2>
<p>functional算子是经过初始化后的Primitive，可以直接作为函数使用。functional算子的使用示例如下：</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">mindspore</span> <span class="kn">import</span> <span class="n">Tensor</span><span class="p">,</span> <span class="n">ops</span>
<span class="kn">from</span> <span class="nn">mindspore</span> <span class="kn">import</span> <span class="n">dtype</span> <span class="k">as</span> <span class="n">mstype</span>

<span class="n">input_x</span> <span class="o">=</span> <span class="n">Tensor</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="n">mstype</span><span class="o">.</span><span class="n">int32</span><span class="p">)</span>
<span class="n">input_dict</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;x&#39;</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span> <span class="s1">&#39;y&#39;</span><span class="p">:</span><span class="mi">2</span><span class="p">}</span>

<span class="n">result_abs</span> <span class="o">=</span> <span class="n">ops</span><span class="o">.</span><span class="n">absolute</span><span class="p">(</span><span class="n">input_x</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">result_abs</span><span class="p">)</span>

<span class="n">result_in_dict</span> <span class="o">=</span> <span class="n">ops</span><span class="o">.</span><span class="n">in_dict</span><span class="p">(</span><span class="s1">&#39;x&#39;</span><span class="p">,</span> <span class="n">input_dict</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">result_in_dict</span><span class="p">)</span>

<span class="n">result_not_in_dict</span> <span class="o">=</span> <span class="n">ops</span><span class="o">.</span><span class="n">not_in_dict</span><span class="p">(</span><span class="s1">&#39;x&#39;</span><span class="p">,</span> <span class="n">input_dict</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">result_not_in_dict</span><span class="p">)</span>

<span class="n">result_isconstant</span> <span class="o">=</span> <span class="n">ops</span><span class="o">.</span><span class="n">isconstant</span><span class="p">(</span><span class="n">input_x</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">result_isconstant</span><span class="p">)</span>

<span class="n">result_typeof</span> <span class="o">=</span> <span class="n">ops</span><span class="o">.</span><span class="n">typeof</span><span class="p">(</span><span class="n">input_x</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">result_typeof</span><span class="p">)</span>

<span class="c1"># outputs:</span>
<span class="c1"># 1</span>
<span class="c1"># True</span>
<span class="c1"># False</span>
<span class="c1"># True</span>
<span class="c1"># Tensor[Int32]</span>
</pre></div>
</div>
<table class="colwidths-given docutils align-default">
<colgroup>
<col style="width: 50%" />
<col style="width: 50%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>functional</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>mindspore.ops.absolute</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Abs.html#mindspore.ops.Abs" title="mindspore.ops.Abs"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Abs</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.acos</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ACos.html#mindspore.ops.ACos" title="mindspore.ops.ACos"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ACos</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.acosh</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Acosh.html#mindspore.ops.Acosh" title="mindspore.ops.Acosh"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Acosh</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.add</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Add.html#mindspore.ops.Add" title="mindspore.ops.Add"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Add</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.addn</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.AddN.html#mindspore.ops.AddN" title="mindspore.ops.AddN"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.AddN</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.asin</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Asin.html#mindspore.ops.Asin" title="mindspore.ops.Asin"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Asin</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.asinh</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Asinh.html#mindspore.ops.Asinh" title="mindspore.ops.Asinh"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Asinh</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.assign</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Assign.html#mindspore.ops.Assign" title="mindspore.ops.Assign"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Assign</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.assign_add</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.AssignAdd.html#mindspore.ops.AssignAdd" title="mindspore.ops.AssignAdd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.AssignAdd</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.assign_sub</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.AssignSub.html#mindspore.ops.AssignSub" title="mindspore.ops.AssignSub"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.AssignSub</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.atan</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Atan.html#mindspore.ops.Atan" title="mindspore.ops.Atan"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Atan</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.atan2</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Atan2.html#mindspore.ops.Atan2" title="mindspore.ops.Atan2"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Atan2</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.atanh</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Atanh.html#mindspore.ops.Atanh" title="mindspore.ops.Atanh"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Atanh</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.bitwise_and</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.BitwiseAnd.html#mindspore.ops.BitwiseAnd" title="mindspore.ops.BitwiseAnd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.BitwiseAnd</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.bitwise_or</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.BitwiseOr.html#mindspore.ops.BitwiseOr" title="mindspore.ops.BitwiseOr"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.BitwiseOr</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.bitwise_xor</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.BitwiseXor.html#mindspore.ops.BitwiseXor" title="mindspore.ops.BitwiseXor"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.BitwiseXor</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.bool_and</p></td>
<td><p>Calculate the result of logical AND operation. (Usage is the same as “and” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.bool_eq</p></td>
<td><p>Determine whether the Boolean values are equal. (Usage is the same as “==” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.bool_not</p></td>
<td><p>Calculate the result of logical NOT operation. (Usage is the same as “not” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.bool_or</p></td>
<td><p>Calculate the result of logical OR operation. (Usage is the same as “or” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.cast</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Cast.html#mindspore.ops.Cast" title="mindspore.ops.Cast"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Cast</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.check_bprop</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.CheckBprop.html#mindspore.ops.CheckBprop" title="mindspore.ops.CheckBprop"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.CheckBprop</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.cos</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Cos.html#mindspore.ops.Cos" title="mindspore.ops.Cos"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Cos</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.cosh</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Cosh.html#mindspore.ops.Cosh" title="mindspore.ops.Cosh"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Cosh</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.cumprod</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.CumProd.html#mindspore.ops.CumProd" title="mindspore.ops.CumProd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.CumProd</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.cumsum</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.CumSum.html#mindspore.ops.CumSum" title="mindspore.ops.CumSum"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.CumSum</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.div</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.RealDiv.html#mindspore.ops.RealDiv" title="mindspore.ops.RealDiv"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.RealDiv</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.depend</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Depend.html#mindspore.ops.Depend" title="mindspore.ops.Depend"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Depend</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.dtype</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.DType.html#mindspore.ops.DType" title="mindspore.ops.DType"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.DType</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.erf</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Erf.html#mindspore.ops.Erf" title="mindspore.ops.Erf"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Erf</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.erfc</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Erfc.html#mindspore.ops.Erfc" title="mindspore.ops.Erfc"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Erfc</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.eye</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Eye.html#mindspore.ops.Eye" title="mindspore.ops.Eye"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Eye</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.equal</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Equal.html#mindspore.ops.Equal" title="mindspore.ops.Equal"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Equal</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.expand_dims</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ExpandDims.html#mindspore.ops.ExpandDims" title="mindspore.ops.ExpandDims"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ExpandDims</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.exp</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Exp.html#mindspore.ops.Exp" title="mindspore.ops.Exp"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Exp</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.fill</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Fill.html#mindspore.ops.Fill" title="mindspore.ops.Fill"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Fill</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.floor</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Floor.html#mindspore.ops.Floor" title="mindspore.ops.Floor"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Floor</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.floordiv</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.FloorDiv.html#mindspore.ops.FloorDiv" title="mindspore.ops.FloorDiv"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.FloorDiv</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.floormod</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.FloorMod.html#mindspore.ops.FloorMod" title="mindspore.ops.FloorMod"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.FloorMod</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.gather</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Gather.html#mindspore.ops.Gather" title="mindspore.ops.Gather"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Gather</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.gather_d</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.GatherD.html#mindspore.ops.GatherD" title="mindspore.ops.GatherD"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.GatherD</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.gather_nd</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.GatherNd.html#mindspore.ops.GatherNd" title="mindspore.ops.GatherNd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.GatherNd</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.ge</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.GreaterEqual.html#mindspore.ops.GreaterEqual" title="mindspore.ops.GreaterEqual"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.GreaterEqual</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.gt</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Greater.html#mindspore.ops.Greater" title="mindspore.ops.Greater"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Greater</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.invert</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Invert.html#mindspore.ops.Invert" title="mindspore.ops.Invert"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Invert</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.in_dict</p></td>
<td><p>Determine if a str in dict.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.is_not</p></td>
<td><p>Determine whether the input is not the same as the other one. (Usage is the same as “is not” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.is_</p></td>
<td><p>Determine whether the input is the same as the other one. (Usage is the same as “is” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.isconstant</p></td>
<td><p>Determine whether the object is constant.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.isfinite</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.IsFinite.html#mindspore.ops.IsFinite" title="mindspore.ops.IsFinite"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.IsFinite</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.isinstance_</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.IsInstance.html#mindspore.ops.IsInstance" title="mindspore.ops.IsInstance"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.IsInstance</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.isnan</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.IsNan.html#mindspore.ops.IsNan" title="mindspore.ops.IsNan"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.IsNan</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.issubclass_</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.IsSubClass.html#mindspore.ops.IsSubClass" title="mindspore.ops.IsSubClass"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.IsSubClass</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.log</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Log.html#mindspore.ops.Log" title="mindspore.ops.Log"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Log</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.logical_and</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.LogicalAnd.html#mindspore.ops.LogicalAnd" title="mindspore.ops.LogicalAnd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.LogicalAnd</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.le</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.LessEqual.html#mindspore.ops.LessEqual" title="mindspore.ops.LessEqual"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.LessEqual</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.less</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Less.html#mindspore.ops.Less" title="mindspore.ops.Less"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Less</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.logical_and</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.LogicalAnd.html#mindspore.ops.LogicalAnd" title="mindspore.ops.LogicalAnd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.LogicalAnd</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.logical_not</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.LogicalNot.html#mindspore.ops.LogicalNot" title="mindspore.ops.LogicalNot"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.LogicalNot</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.logical_or</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.LogicalOr.html#mindspore.ops.LogicalOr" title="mindspore.ops.LogicalOr"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.LogicalOr</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.maximum</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Maximum.html#mindspore.ops.Maximum" title="mindspore.ops.Maximum"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Maximum</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.minimum</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Minimum.html#mindspore.ops.Minimum" title="mindspore.ops.Minimum"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Minimum</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.mul</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Mul.html#mindspore.ops.Mul" title="mindspore.ops.Mul"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Mul</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.neg_tensor</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Neg.html#mindspore.ops.Neg" title="mindspore.ops.Neg"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Neg</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.not_equal</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.NotEqual.html#mindspore.ops.NotEqual" title="mindspore.ops.NotEqual"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.NotEqual</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.not_in_dict</p></td>
<td><p>Determine whether the object is not in the dict.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.ones_like</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.OnesLike.html#mindspore.ops.OnesLike" title="mindspore.ops.OnesLike"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.OnesLike</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.partial</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Partial.html#mindspore.ops.Partial" title="mindspore.ops.Partial"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Partial</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.pows</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Pow.html#mindspore.ops.Pow" title="mindspore.ops.Pow"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Pow</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.print_</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Print.html#mindspore.ops.Print" title="mindspore.ops.Print"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Print</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.rank</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Rank.html#mindspore.ops.Rank" title="mindspore.ops.Rank"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Rank</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.reduce_max</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ReduceMax.html#mindspore.ops.ReduceMax" title="mindspore.ops.ReduceMax"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ReduceMax</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.reduce_mean</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ReduceMean.html#mindspore.ops.ReduceMean" title="mindspore.ops.ReduceMean"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ReduceMean</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.reduce_min</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ReduceMin.html#mindspore.ops.ReduceMin" title="mindspore.ops.ReduceMin"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ReduceMin</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.reduce_prod</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ReduceProd.html#mindspore.ops.ReduceProd" title="mindspore.ops.ReduceProd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ReduceProd</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.reduce_sum</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ReduceSum.html#mindspore.ops.ReduceSum" title="mindspore.ops.ReduceSum"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ReduceSum</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.reshape</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Reshape.html#mindspore.ops.Reshape" title="mindspore.ops.Reshape"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Reshape</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.same_type_shape</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.SameTypeShape.html#mindspore.ops.SameTypeShape" title="mindspore.ops.SameTypeShape"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.SameTypeShape</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_add</p></td>
<td><p>Get the sum of two numbers. (Usage is the same as “+” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_cast</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ScalarCast.html#mindspore.ops.ScalarCast" title="mindspore.ops.ScalarCast"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ScalarCast</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_div</p></td>
<td><p>Get the quotient of dividing the first input number by the second input number. (Usage is the same as “/” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_eq</p></td>
<td><p>Determine whether two numbers are equal. (Usage is the same as “==” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_floordiv</p></td>
<td><p>Divide the first input number by the second input number and round down to the closest integer. (Usage is the same as “//” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_ge</p></td>
<td><p>Determine whether the number is greater than or equal to another number. (Usage is the same as “&gt;=” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_gt</p></td>
<td><p>Determine whether the number is greater than another number. (Usage is the same as “&gt;” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_le</p></td>
<td><p>Determine whether the number is less than or equal to another number. (Usage is the same as “&lt;=” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_log</p></td>
<td><p>Get the natural logarithm of the input number.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_lt</p></td>
<td><p>Determine whether the number is less than another number. (Usage is the same as “&lt;” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_mod</p></td>
<td><p>Get the remainder of dividing the first input number by the second input number. (Usage is the same as “%” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_mul</p></td>
<td><p>Get the product of the input two numbers. (Usage is the same as “*” in Python)</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_ne</p></td>
<td><p>Determine whether two numbers are not equal. (Usage is the same as “!=” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_pow</p></td>
<td><p>Compute a number to the power of the second input number.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_sub</p></td>
<td><p>Subtract the second input number from the first input number. (Usage is the same as “-” in Python)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_to_array</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ScalarToArray.html#mindspore.ops.ScalarToArray" title="mindspore.ops.ScalarToArray"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ScalarToArray</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_to_tensor</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ScalarToTensor.html#mindspore.ops.ScalarToTensor" title="mindspore.ops.ScalarToTensor"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ScalarToTensor</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scalar_uadd</p></td>
<td><p>Get the positive value of the input number.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scalar_usub</p></td>
<td><p>Get the negative value of the input number.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scatter_nd</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ScatterNd.html#mindspore.ops.ScatterNd" title="mindspore.ops.ScatterNd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ScatterNd</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.scatter_nd_update</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ScatterNdUpdate.html#mindspore.ops.ScatterNdUpdate" title="mindspore.ops.ScatterNdUpdate"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ScatterNdUpdate</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.scatter_update</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ScatterUpdate.html#mindspore.ops.ScatterUpdate" title="mindspore.ops.ScatterUpdate"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ScatterUpdate</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.shape</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Shape.html#mindspore.ops.Shape" title="mindspore.ops.Shape"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Shape</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.shape_mul</p></td>
<td><p>The input of shape_mul must be shape multiply elements in tuple(shape).</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.sin</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Sin.html#mindspore.ops.Sin" title="mindspore.ops.Sin"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Sin</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.sinh</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Sinh.html#mindspore.ops.Sinh" title="mindspore.ops.Sinh"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Sinh</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.size</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Size.html#mindspore.ops.Size" title="mindspore.ops.Size"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Size</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.sort</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Sort.html#mindspore.ops.Sort" title="mindspore.ops.Sort"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Sort</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.sqrt</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Sqrt.html#mindspore.ops.Sqrt" title="mindspore.ops.Sqrt"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Sqrt</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.square</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Square.html#mindspore.ops.Square" title="mindspore.ops.Square"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Square</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.squeeze</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Squeeze.html#mindspore.ops.Squeeze" title="mindspore.ops.Squeeze"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Squeeze</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.stack</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Stack.html#mindspore.ops.Stack" title="mindspore.ops.Stack"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Stack</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.stop_gradient</p></td>
<td><p>Disable update during back propagation. (<a class="reference external" href="https://www.mindspore.cn/tutorials/en/master/autograd.html#stop-gradient">stop_gradient</a>)</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.strided_slice</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.StridedSlice.html#mindspore.ops.StridedSlice" title="mindspore.ops.StridedSlice"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.StridedSlice</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.string_concat</p></td>
<td><p>Concatenate two strings.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.string_eq</p></td>
<td><p>Determine if two strings are equal.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.sub</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Sub.html#mindspore.ops.Sub" title="mindspore.ops.Sub"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Sub</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tan</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Tan.html#mindspore.ops.Tan" title="mindspore.ops.Tan"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Tan</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tanh</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Tanh.html#mindspore.ops.Tanh" title="mindspore.ops.Tanh"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Tanh</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_add</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Add.html#mindspore.ops.Add" title="mindspore.ops.Add"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Add</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_div</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.RealDiv.html#mindspore.ops.RealDiv" title="mindspore.ops.RealDiv"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.RealDiv</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_exp</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Exp.html#mindspore.ops.Exp" title="mindspore.ops.Exp"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Exp</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_expm1</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Expm1.html#mindspore.ops.Expm1" title="mindspore.ops.Expm1"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Expm1</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_floordiv</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.FloorDiv.html#mindspore.ops.FloorDiv" title="mindspore.ops.FloorDiv"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.FloorDiv</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_ge</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.GreaterEqual.html#mindspore.ops.GreaterEqual" title="mindspore.ops.GreaterEqual"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.GreaterEqual</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_gt</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Greater.html#mindspore.ops.Greater" title="mindspore.ops.Greater"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Greater</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_le</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.LessEqual.html#mindspore.ops.LessEqual" title="mindspore.ops.LessEqual"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.LessEqual</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_lt</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Less.html#mindspore.ops.Less" title="mindspore.ops.Less"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Less</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_mod</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.FloorMod.html#mindspore.ops.FloorMod" title="mindspore.ops.FloorMod"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.FloorMod</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_mul</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Mul.html#mindspore.ops.Mul" title="mindspore.ops.Mul"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Mul</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_pow</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Pow.html#mindspore.ops.Pow" title="mindspore.ops.Pow"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Pow</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_scatter_add</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.TensorScatterAdd.html#mindspore.ops.TensorScatterAdd" title="mindspore.ops.TensorScatterAdd"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.TensorScatterAdd</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_scatter_update</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.TensorScatterUpdate.html#mindspore.ops.TensorScatterUpdate" title="mindspore.ops.TensorScatterUpdate"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.TensorScatterUpdate</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tensor_slice</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Slice.html#mindspore.ops.Slice" title="mindspore.ops.Slice"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Slice</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.tensor_sub</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Sub.html#mindspore.ops.Sub" title="mindspore.ops.Sub"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Sub</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tile</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Tile.html#mindspore.ops.Tile" title="mindspore.ops.Tile"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Tile</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.transpose</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.Transpose.html#mindspore.ops.Transpose" title="mindspore.ops.Transpose"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Transpose</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.tuple_to_array</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.TupleToArray.html#mindspore.ops.TupleToArray" title="mindspore.ops.TupleToArray"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.TupleToArray</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p>mindspore.ops.typeof</p></td>
<td><p>Get type of object.</p></td>
</tr>
<tr class="row-odd"><td><p>mindspore.ops.zeros_like</p></td>
<td><p>Refer to <a class="reference internal" href="ops/mindspore.ops.ZerosLike.html#mindspore.ops.ZerosLike" title="mindspore.ops.ZerosLike"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.ZerosLike</span></code></a>.</p></td>
</tr>
</tbody>
</table>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 60%" />
<col style="width: 30%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>接口名</p></td>
<td><p>概述</p></td>
<td><p>支持平台</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.batch_dot.html#mindspore.ops.batch_dot" title="mindspore.ops.batch_dot"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.batch_dot</span></code></a></p></td>
<td><p>Computation of batch dot product between samples in two tensors containing batch dims.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.clip_by_global_norm.html#mindspore.ops.clip_by_global_norm" title="mindspore.ops.clip_by_global_norm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.clip_by_global_norm</span></code></a></p></td>
<td><p>Clips tensor values by the ratio of the sum of their norms.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.clip_by_value.html#mindspore.ops.clip_by_value" title="mindspore.ops.clip_by_value"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.clip_by_value</span></code></a></p></td>
<td><p>Clips tensor values to a specified min and max.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.core.html#mindspore.ops.core" title="mindspore.ops.core"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.core</span></code></a></p></td>
<td><p>A decorator that adds a flag to the function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.count_nonzero.html#mindspore.ops.count_nonzero" title="mindspore.ops.count_nonzero"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.count_nonzero</span></code></a></p></td>
<td><p>Count number of nonzero elements across axis of input tensor</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.cummin.html#mindspore.ops.cummin" title="mindspore.ops.cummin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.cummin</span></code></a></p></td>
<td><p>Computation of the cumulative minimum of elements of ‘x’ in the dimension axis, and the index location of each maximum value found in the dimension ‘axis’.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.dot.html#mindspore.ops.dot" title="mindspore.ops.dot"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.dot</span></code></a></p></td>
<td><p>Computation a dot product between samples in two tensors.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.gamma.html#mindspore.ops.gamma" title="mindspore.ops.gamma"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.gamma</span></code></a></p></td>
<td><p>Generates random numbers according to the Gamma random number distribution.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.grad.html#mindspore.ops.grad" title="mindspore.ops.grad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.grad</span></code></a></p></td>
<td><p>A wrapper function to generate the gradient function for the input function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.GradOperation.html#mindspore.ops.GradOperation" title="mindspore.ops.GradOperation"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.GradOperation</span></code></a></p></td>
<td><p>A higher-order function which is used to generate the gradient function for the input function.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.HyperMap.html#mindspore.ops.HyperMap" title="mindspore.ops.HyperMap"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.HyperMap</span></code></a></p></td>
<td><p>Hypermap will apply the set operation to input sequences.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.jvp.html#mindspore.ops.jvp" title="mindspore.ops.jvp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.jvp</span></code></a></p></td>
<td><p>Compute the jacobian-vector-product of the given network.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.laplace.html#mindspore.ops.laplace" title="mindspore.ops.laplace"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.laplace</span></code></a></p></td>
<td><p>Generates random numbers according to the Laplace random number distribution.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.Map.html#mindspore.ops.Map" title="mindspore.ops.Map"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Map</span></code></a></p></td>
<td><p>Map will apply the set operation on input sequences.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.matmul.html#mindspore.ops.matmul" title="mindspore.ops.matmul"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.matmul</span></code></a></p></td>
<td><p>Returns the matrix product of two arrays.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.multinomial.html#mindspore.ops.multinomial" title="mindspore.ops.multinomial"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.multinomial</span></code></a></p></td>
<td><p>Returns a tensor sampled from the multinomial probability distribution located in the corresponding row of the input tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.MultitypeFuncGraph.html#mindspore.ops.MultitypeFuncGraph" title="mindspore.ops.MultitypeFuncGraph"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.MultitypeFuncGraph</span></code></a></p></td>
<td><p>Generates overloaded functions.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.narrow.html#mindspore.ops.narrow" title="mindspore.ops.narrow"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.narrow</span></code></a></p></td>
<td><p>Returns a narrowed tensor from input tensor.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.normal.html#mindspore.ops.normal" title="mindspore.ops.normal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.normal</span></code></a></p></td>
<td><p>Generates random numbers according to the Normal (or Gaussian) random number distribution.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.poisson.html#mindspore.ops.poisson" title="mindspore.ops.poisson"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.poisson</span></code></a></p></td>
<td><p>Generates random numbers according to the Poisson random number distribution.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.repeat_elements.html#mindspore.ops.repeat_elements" title="mindspore.ops.repeat_elements"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.repeat_elements</span></code></a></p></td>
<td><p>Repeat elements of a tensor along an axis, like np.repeat.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.select.html#mindspore.ops.select" title="mindspore.ops.select"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.select</span></code></a></p></td>
<td><p>Returns the selected elements, either from input <span class="math notranslate nohighlight">\(x\)</span> or input <span class="math notranslate nohighlight">\(y\)</span>, depending on the condition <cite>cond</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.sequence_mask.html#mindspore.ops.sequence_mask" title="mindspore.ops.sequence_mask"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.sequence_mask</span></code></a></p></td>
<td><p>Returns a mask tensor representing the first N positions of each cell.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.tensor_dot.html#mindspore.ops.tensor_dot" title="mindspore.ops.tensor_dot"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.tensor_dot</span></code></a></p></td>
<td><p>Computation of Tensor contraction on arbitrary axes between tensors <cite>a</cite> and <cite>b</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.uniform.html#mindspore.ops.uniform" title="mindspore.ops.uniform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.uniform</span></code></a></p></td>
<td><p>Generates random numbers according to the Uniform random number distribution.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.vjp.html#mindspore.ops.vjp" title="mindspore.ops.vjp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.vjp</span></code></a></p></td>
<td><p>Compute the vector-jacobian-product of the given network.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">Ascend</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code> <code class="docutils literal notranslate"><span class="pre">CPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id11">
<h2>原语<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.constexpr.html#mindspore.ops.constexpr" title="mindspore.ops.constexpr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.constexpr</span></code></a></p></td>
<td><p>创建PrimiveWithInfer算子，用于在编译时推断值。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.prim_attr_register.html#mindspore.ops.prim_attr_register" title="mindspore.ops.prim_attr_register"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.prim_attr_register</span></code></a></p></td>
<td><p>Primitive属性的注册器。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.Primitive.html#mindspore.ops.Primitive" title="mindspore.ops.Primitive"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.Primitive</span></code></a></p></td>
<td><p>Primitive是Python中算子原语的基类。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.PrimitiveWithCheck.html#mindspore.ops.PrimitiveWithCheck" title="mindspore.ops.PrimitiveWithCheck"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.PrimitiveWithCheck</span></code></a></p></td>
<td><p>PrimitiveWithCheck是Python中原语的基类，定义了检查算子输入参数的函数，但是使用了C++源码中注册的推理方法。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.PrimitiveWithInfer.html#mindspore.ops.PrimitiveWithInfer" title="mindspore.ops.PrimitiveWithInfer"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.PrimitiveWithInfer</span></code></a></p></td>
<td><p>PrimitiveWithInfer是Python中的原语基类，在python中定义了跟踪推理的函数。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id12">
<h2>函数实现注册<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.get_vm_impl_fn.html#mindspore.ops.get_vm_impl_fn" title="mindspore.ops.get_vm_impl_fn"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.get_vm_impl_fn</span></code></a></p></td>
<td><p>通过Primitive对象或Primitive名称，获取虚拟实现函数。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id13">
<h2>算子信息注册<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.AiCPURegOp.html#mindspore.ops.AiCPURegOp" title="mindspore.ops.AiCPURegOp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.AiCPURegOp</span></code></a></p></td>
<td><p>Class for AiCPU operator information register.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.custom_info_register.html#mindspore.ops.custom_info_register" title="mindspore.ops.custom_info_register"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.custom_info_register</span></code></a></p></td>
<td><p>A decorator which is used to bind the registration information to the <cite>func</cite> parameter of <a class="reference internal" href="ops/mindspore.ops.Custom.html#mindspore.ops.Custom" title="mindspore.ops.Custom"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Custom</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.CustomRegOp.html#mindspore.ops.CustomRegOp" title="mindspore.ops.CustomRegOp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.CustomRegOp</span></code></a></p></td>
<td><p>Class used for generating the registration information for the <cite>func</cite> parameter of <a class="reference internal" href="ops/mindspore.ops.Custom.html#mindspore.ops.Custom" title="mindspore.ops.Custom"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.ops.Custom</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.DataType.html#mindspore.ops.DataType" title="mindspore.ops.DataType"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.DataType</span></code></a></p></td>
<td><p>Ascend算子的dtype和format的多种组合。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="ops/mindspore.ops.op_info_register.html#mindspore.ops.op_info_register" title="mindspore.ops.op_info_register"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.op_info_register</span></code></a></p></td>
<td><p>A decorator which is used to register an operator.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="ops/mindspore.ops.TBERegOp.html#mindspore.ops.TBERegOp" title="mindspore.ops.TBERegOp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ops.TBERegOp</span></code></a></p></td>
<td><p>Class for TBE operator information register.</p></td>
</tr>
</tbody>
</table>
</div>
</div>


           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="ops/mindspore.ops.Acosh.html" class="btn btn-neutral float-right" title="mindspore.ops.Acosh" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="numpy/mindspore.numpy.var.html" class="btn btn-neutral float-left" title="mindspore.numpy.var" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2021, MindSpore.

    </p>
  </div>
    
    
    
    Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    
    provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>